3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a =["0","0","0"]; $b=array(); foreach($a as $b) { echo $b[]; } ?>
Output for 5.4.0 - 5.4.20
Fatal error: Cannot use [] for reading in /in/IL5qZ on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '[' in /in/IL5qZ on line 2
Process exited with code 255.