3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dfgg = '1'; $GLOBALS['a'] = ['dfgg' => 1, 'dfgg' => 1,'dfgg' => 1,'dfgg' => 1,'dfgg' => 1,'dfgg' => 1,'eEhF' => 2]; function d() { $eEhF = '2'; global ${''}; var_dump($eEhF); } d();
Output for 5.4.25 - 7.2.0
string(1) "2"
Output for 5.3.29
Parse error: syntax error, unexpected '[' in /in/Fd3c3 on line 4
Process exited with code 255.
Output for 4.3.0
Parse error: parse error, unexpected '[' in /in/Fd3c3 on line 4
Process exited with code 255.