3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $lol = ['as', 'sd]; foreach($lol as $l) {echo $l}
Output for 5.4.0 - 5.5.3
Parse error: syntax error, unexpected ''sd];' (T_ENCAPSED_AND_WHITESPACE), expecting ']' in /in/avRQ6 on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '[' in /in/avRQ6 on line 2
Process exited with code 255.