3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php foreach(array( null, true, false, 0, new array(), 'LINE', '0LINE', '1LINE', '0LINE0', '1LINE0', '0LINE1', '1LINE1', ) as $sample_data){ var_dump($sample_data + 1); }
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected 'array' (T_ARRAY) in /in/vFZmQ on line 8
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_ARRAY in /in/vFZmQ on line 8
Process exited with code 255.