3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = ['0' => 1, '1' => 2, '2' => 3]; $b = ['0' => 4, '1' => 5, '2' => 6]; $newArray = array_map('combine',array_map(null, $a, $b)); function combine($n){ return array_combine(array('a','b'),$n); } print_r($newArray);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [a] => 1 [b] => 4 ) [1] => Array ( [a] => 2 [b] => 5 ) [2] => Array ( [a] => 3 [b] => 6 ) )

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