Location: PHPKode > projects > phc > test/subjects/codegen/global.php
<?php
	function f()
	{
		global $x;
		$x = 10;
	}

	function g()
	{
		$GLOBALS["y"] = 20;
	}

	f();
	var_dump($x);

	g();
	var_dump($y);
?>
Return current item: phc