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

21 linhas
297 B
PHP

<?php
function foo() {
global $x; $x++;
global $x2; $x2 = 44;
global $a; $a[] = "a";
global $a2; $a2 = array("a2");
}
function bar() {
global $x; var_dump($x);
global $x2; var_dump($x2);
global $a; var_dump($a);
global $a2; var_dump($a2);
}
$x = 42;
$a = array();
foo();
bar();