3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(10, 20); foreach($a as $v) { var_dump($a) var_dump($v); unset($a[1]); } var_dump($v);
Output for 5.4.0 - 5.5.9
Parse error: syntax error, unexpected 'var_dump' (T_STRING) in /in/khYNN on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/khYNN on line 5
Process exited with code 255.