3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cars=array("Volvo","BMW","Toyota"); $arrlength=count($cars); for($x=0;$x<$arrlength;$x++) { echo $cars[$x]; echo "\n"; } ?>
Output for 4.3.0 - 7.1.0
Volvo BMW Toyota