3v4l.org

run code in 300+ PHP versions simultaneously
<?php $model = array("id","car1,"car2","car3"); $cars=array("Volvo","BMW","Toyota"); $arrlength=count($model); for($x=1;$x<$arrlength;$x++) { echo $cars[$x]; echo "\n"; } ?>
Output for 5.4.0 - 5.4.27
Parse error: syntax error, unexpected 'car2' (T_STRING), expecting ')' in /in/QP5h0 on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting ')' in /in/QP5h0 on line 2
Process exited with code 255.

preferences:
183.88 ms | 1395 KiB | 64 Q