3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ar1 = ['sdasd'=>[2,3,5,7], 'grtgtr'=>[1,2,7,8]]; $ar2 = ['sdasd'=>[2,3], 'grtgtr'=>[1,2]]; foreach($ar1 as $key=>&$subar){ $subar = array_merge($subar,$ar2[$key]); } print_r($ar1);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [sdasd] => Array ( [0] => 2 [1] => 3 [2] => 5 [3] => 7 [4] => 2 [5] => 3 ) [grtgtr] => Array ( [0] => 1 [1] => 2 [2] => 7 [3] => 8 [4] => 1 [5] => 2 ) )

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