hiphop-php /hphp/test/slow/array_object/print_r.php

Language PHP Lines 14
MD5 Hash 0f3f6a886fd829c1b45cb4ee68288761 Estimated Cost $192 (why?)
Repository git://github.com/facebook/hiphop-php.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
<?php

function test($flag = 0) {
  $ao = new ArrayObject([], $flag);
  $ao['foo'] = 'bar';
  $ao->bar = 'baz';

  print_r($ao);
}

test();
test(ArrayObject::STD_PROP_LIST);
test(ArrayObject::ARRAY_AS_PROPS);
Back to Top