3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $j = count(get_defined_vars()); $a=8; $b=['b','mm']; $k = get_defined_vars(); $vars=array_slice($k, $j + 1)); foreach($vars as $var) { if(is_array($var)) { $var = serialize($var); } $settings[] = $var; } var_dump($settings);
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected ')' in /in/9vNC4 on line 16
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[' in /in/9vNC4 on line 11
Process exited with code 255.