3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array=( array("id"=>1,"firstname"=>"Carole","lastname"=>"Oconor"), array("id"=>2,"firstname"=>"Berry","lastname"=>"Albert"), array("id"=>3,"firstname"=>"Mathiew","lastname"=>"Ernest"), array("id"=>15,"firstname"=>"Albert","lastname"=>"Carole"), array("id"=>41,"firstname"=>"Oconor","lastname"=>"Zela"), array("id"=>81,"firstname"=>"Zela","lastname"=>"Berry"), array("id"=>91,"firstname"=>"Ernest","lastname"=>"Mathiew") ); print_r($array);
Output for 5.3.0 - 5.4.15
Parse error: syntax error, unexpected ',' in /in/MlkuW on line 3
Process exited with code 255.