3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array1 = ['x' => 1, 3 => 4, 't' => 8]; $array2 = ['x' => 2, 5 => 6,]; $array3 = ['x' => [3, 4, 5]]; $array4 = ['x' => [[4]]]; $arrays = [$array1, $array2, $array3, $array4]; print_r(array_merge_recursive(...$arrays));
Output for git.master, git.master_jit
Array ( [x] => Array ( [0] => 1 [1] => 2 [2] => 3 [3] => 4 [4] => 5 [5] => Array ( [0] => 4 ) ) [0] => 4 [t] => 8 [1] => 6 )

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:
50.9 ms | 871 KiB | 4 Q