3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Arr1 = [343,353,353,646,757,8]; $Arr2 = [35,353,646,75,23,23]; $a = array_map(null, $Arr1, $Arr2); print_r($a); /*************************************/ array_map(function($v1, $v2){echo $v1.'---'.$v2."\n";}, $Arr1, $Arr2);
based on lsla9
Output for 7.1.25 - 7.1.32, 7.2.0 - 7.2.33, 7.3.0 - 7.3.23, 7.4.0 - 7.4.11, 8.0.0alpha1 - rc2
Array ( [0] => Array ( [0] => 343 [1] => 35 ) [1] => Array ( [0] => 353 [1] => 353 ) [2] => Array ( [0] => 353 [1] => 646 ) [3] => Array ( [0] => 646 [1] => 75 ) [4] => Array ( [0] => 757 [1] => 23 ) [5] => Array ( [0] => 8 [1] => 23 ) ) 343---35 353---353 353---646 646---75 757---23 8---23