Arquivos
hhvm/hphp/test/vm/cgetm_retbase.php
T
Jordan Delong 363d1bb20f Code move src/ -> hphp/
This change is mostly for FB internal organizational reasons.
Building is not effected beyond the fact that the target now
lands in hphp/hhvm/hhvm rather than src/hhvm/hhvm.
2013-02-11 02:10:41 -08:00

16 linhas
267 B
PHP

<?php
function f() { $a = array(); $a[] = 1; return $a; }
function nonHphpArray( ) {
apc_add('foo', array(1, 2, 3));
return apc_fetch('foo');
}
function test1() {
return f()[0];
}
function main() {
var_dump(test1());
var_dump(nonHphpArray()[0]);
}
main();