3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ 'FoundryMcrouter' => [ 'pool' => [ [ 'host' => 'localhost', 'port' => 11211, 'weight' => 0, ], ], 'namespace' => 'delivery-club', /* 'host' => '', 'cluster' => '/dc/cluster/' */ ], ]; $b = [ 'FoundryMcrouter' => [ 'pool' => [ [ 'host' => 'localhost', 'port' => 11211, 'weight' => 0, ], ], ], ]; var_dump(array_merge_recursive($a,$b));
Output for git.master, git.master_jit, rfc.property-hooks
array(1) { ["FoundryMcrouter"]=> array(2) { ["pool"]=> array(2) { [0]=> array(3) { ["host"]=> string(9) "localhost" ["port"]=> int(11211) ["weight"]=> int(0) } [1]=> array(3) { ["host"]=> string(9) "localhost" ["port"]=> int(11211) ["weight"]=> int(0) } } ["namespace"]=> string(13) "delivery-club" } }

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