3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cars=array("Volvo","BMW","Toyota"); $arrlength=count($cars); for($x=0;$x<$arrlength;$x++) { echo $cars[$x]; echo ."<br>".; } ?>
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.20, 5.5.0 - 5.5.4
Parse error: syntax error, unexpected '.' in /in/o2jPP on line 8
Process exited with code 255.

preferences:
185.29 ms | 1395 KiB | 61 Q