3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $dfgg = '1'; $GLOBALS = array('dfgg' => 1); //$GLOBALS = array(); function d() { $GLOBALS['dfgg']=3; $GLOBALS['eEhF']=4; } d(); print_r($GLOBALS);
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
Array ( [dfgg] => 3 [eEhF] => 4 )
Output for 4.3.0 - 4.4.9, hhvm-3.12.0
Array ( [dfgg] => 1 )
Output for hhvm-3.10.0

Process exited with code 153.