3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach(get_defined_vars()as $key => $v { unset($GLOBALS[$key]); } $b=['1','2',3,4,5,6,7,8]; $vars=array_slice($b, 1); var_dump($vars);
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected 'unset' (T_UNSET) in /in/Fgu25 on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_UNSET in /in/Fgu25 on line 6
Process exited with code 255.