3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = [ "First" =>[ "Name" => "John", "Id" => 123 ], "Second" =>[ "Name" => "Peter", "Id" => 45 ] ]; $arr2 = [ "First" =>[ "Age" => 34, "Id" => 123 ], "Second" =>[ "Age" => 34, "Id" => 45 ] ]; print_r(array_replace_recursive($arr1, $arr2));
Output for git.master_jit, git.master, rfc.property-hooks
Array ( [First] => Array ( [Name] => John [Id] => 123 [Age] => 34 ) [Second] => Array ( [Name] => Peter [Id] => 45 [Age] => 34 ) )

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:
27.52 ms | 406 KiB | 5 Q