3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = [12, 23, 34]; $second = [32, 21, 43]; $comb=[]; foreach($first as $key){ foreach($second as $row){ $comb[]=$key; $comb[]=$row; } } $combine=['name'=>'data1', 'color'=> '#299662', array_map(null, $first, $second)]; print_r($combine);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [name] => data1 [color] => #299662 [0] => Array ( [0] => Array ( [0] => 12 [1] => 32 ) [1] => Array ( [0] => 23 [1] => 21 ) [2] => Array ( [0] => 34 [1] => 43 ) ) )

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