3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 0 => [ 'price' => 5.5 ], 1 => [ 'price' => 6.0 ], 2 => [ 'price' => 6.2 ], 3 => [ 'price' => 6.5 ], ]; $b = [ 0 => [ 'color' => 'RED' ], 1 => [ 'color' => 'WHITE' ], 2 => [ 'color' => 'BLUE' ], 3 => [ 'color' => 'RED' ], ]; print_r(array_replace_recursive($a, $b));
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [price] => 5.5 [color] => RED ) [1] => Array ( [price] => 6 [color] => WHITE ) [2] => Array ( [price] => 6.2 [color] => BLUE ) [3] => Array ( [price] => 6.5 [color] => RED ) )

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:
51.79 ms | 402 KiB | 8 Q