3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [1,2,3,4]; for($x = 0; x < length($a); x++) { echo $a[$x]; }
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.30, 5.6.7 - 5.6.14
Parse error: syntax error, unexpected '++' (T_INC), expecting ')' in /in/vGTEK on line 4
Process exited with code 255.

preferences:
175.98 ms | 1400 KiB | 67 Q