3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( array("id" => 7867867, "title" => "Must Be #3"), array("id" => 3452342, "title" => "Must Be #1"), array("id" => 1231233, "title" => "Must Be #4"), array("id" => 5867867, "title" => "Must Be #2"), array("id" => 1111111, "title" => "Dont Care #1"), array("id" => 2222222, "title" => "Dont Care #2"), array("id" => 3333333, "title" => "Dont Care #3"), array("id" => 4444444, "title" => "Dont Care #4") ); var_dump($array); // after ?>
based on NoAEE
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(8) { [0]=> array(2) { ["id"]=> int(7867867) ["title"]=> string(10) "Must Be #3" } [1]=> array(2) { ["id"]=> int(3452342) ["title"]=> string(10) "Must Be #1" } [2]=> array(2) { ["id"]=> int(1231233) ["title"]=> string(10) "Must Be #4" } [3]=> array(2) { ["id"]=> int(5867867) ["title"]=> string(10) "Must Be #2" } [4]=> array(2) { ["id"]=> int(1111111) ["title"]=> string(12) "Dont Care #1" } [5]=> array(2) { ["id"]=> int(2222222) ["title"]=> string(12) "Dont Care #2" } [6]=> array(2) { ["id"]=> int(3333333) ["title"]=> string(12) "Dont Care #3" } [7]=> array(2) { ["id"]=> int(4444444) ["title"]=> string(12) "Dont Care #4" } }