3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array=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 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => Array ( [id] => 1 [firstname] => Carole [lastname] => Oconor ) [1] => Array ( [id] => 2 [firstname] => Berry [lastname] => Albert ) [2] => Array ( [id] => 3 [firstname] => Mathiew [lastname] => Ernest ) [3] => Array ( [id] => 15 [firstname] => Albert [lastname] => Carole ) [4] => Array ( [id] => 41 [firstname] => Oconor [lastname] => Zela ) [5] => Array ( [id] => 81 [firstname] => Zela [lastname] => Berry ) [6] => Array ( [id] => 91 [firstname] => Ernest [lastname] => Mathiew ) )