3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ [ [ "name" => "test", "id" => 4 ], [ "name" => "test2", "id" => 152 ], [ "name" => "test2", "id" => 152 ] ], [ [ "name" => "test", "id" => 4 ], [ "name" => "test2", "id" => 152 ], [ "name" => "test2", "id" => 152 ] ] ]; var_dump($array, call_user_func_array('array_merge', $array));
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> array(3) { [0]=> array(2) { ["name"]=> string(4) "test" ["id"]=> int(4) } [1]=> array(2) { ["name"]=> string(5) "test2" ["id"]=> int(152) } [2]=> array(2) { ["name"]=> string(5) "test2" ["id"]=> int(152) } } [1]=> array(3) { [0]=> array(2) { ["name"]=> string(4) "test" ["id"]=> int(4) } [1]=> array(2) { ["name"]=> string(5) "test2" ["id"]=> int(152) } [2]=> array(2) { ["name"]=> string(5) "test2" ["id"]=> int(152) } } } array(6) { [0]=> array(2) { ["name"]=> string(4) "test" ["id"]=> int(4) } [1]=> array(2) { ["name"]=> string(5) "test2" ["id"]=> int(152) } [2]=> array(2) { ["name"]=> string(5) "test2" ["id"]=> int(152) } [3]=> array(2) { ["name"]=> string(4) "test" ["id"]=> int(4) } [4]=> array(2) { ["name"]=> string(5) "test2" ["id"]=> int(152) } [5]=> array(2) { ["name"]=> string(5) "test2" ["id"]=> int(152) } }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
40.62 ms | 403 KiB | 8 Q