3v4l.org

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