3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cars = array( array( "make" => "toyota", "model" => "corolla", "size" => "compact" ), array( "make" => "toyota", "model" => "camry", "size" => "full size" ), array( "make" => "honda", "model" => "civic", "size" => "compact" ), array( "make" => "honda", "model" => "accord", "size" => "full size" ), array( "make" => "nissan", "model" => "sentra", "size" => "compact" ), array( "make" => "nissan", "model" => "altima", "size" => "mid size" ), array( "make" = "nissan", "model" = "maxima", "size" => "full size" ) ); for($i=0;$i<count($cars);$i++){ echo "the make is ".$cars[$i][make]."."; echo "the model is ".$cars[$i][model]."."; echo "the ".$cars[$i][make]." ".$cars[$i][model]." is a ".$cars[$i][size]." car."; } ?>
Output for 5.3.0 - 5.4.11
Parse error: syntax error, unexpected '=', expecting ')' in /in/NfStc on line 34
Process exited with code 255.