Arquivos
hhvm/hphp/test/vm/array_tuple.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

15 linhas
422 B
PHP

<?php
function test($x) {
// each of these should "just work" but stresses NewTuple logic.
$a = array($x, 1, 2); var_dump($a);
$a = array($x,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1); var_dump($a);
$a = array(0,$x,0,0,0,0,0,8); var_dump($a);
$a = array(0,$x,0,0,0,0,0,0,0,0,11); var_dump($a);
$a = array(0,$x,0,0,0,0,0,0,0,0,0,12); var_dump($a);
$a = array(1,1,$x,"a"=>$x); var_dump($a);
}
test(42);