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

29 linhas
382 B
PHP

<?php
for ($i = 0; $i < 3; $i++) {
$b = 30;
$a =& $b;
$b = 60;
var_dump($a, $b);
$a = "foo";
var_dump($a, $b);
unset($a);
unset($b);
}
for ($i = 0; $i < 2; $i++) {
$b = array(1, 2, 3);
$a =& $b;
$b = 60;
var_dump($a, $b);
$a = "foo";
var_dump($a, $b);
}
function f() {
$b = 30;
$a =& $b;
$b = array();
$a =& $b;
$b = 60;
var_dump($a);
}
f();