3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Enter your code here, enjoy! $a = [ "test1" => [ 'value' => 1, "date"=> '2019-01-01' ], "test2" => [ 'value' => 2, "date"=> '2019-01-01' ] ]; $b = [ "test1" => [ 'value' => 3, "date"=> '2018-01-01' ], "test2" => [ 'value' => 4, "date"=> '2018-01-01' ] ]; $res = array_map(null, $a, $b); print_r($res);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [0] => Array ( [value] => 1 [date] => 2019-01-01 ) [1] => Array ( [value] => 3 [date] => 2018-01-01 ) ) [1] => Array ( [0] => Array ( [value] => 2 [date] => 2019-01-01 ) [1] => Array ( [value] => 4 [date] => 2018-01-01 ) ) )

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