3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = [["testA1", "testA2"], ["testA3", "testA4"]]; $b = [["testB1", "testB2"], ["testB3", "testB4"]]; $c = [["testC1", "testC2"], ["testC3", "testC4"]]; $result = []; foreach ($a as $k => $v) { array_push($result, ...$a[$k], ...$b[$k], ...$c[$k]); } var_export($result);

preferences:
48.76 ms | 1274 KiB | 5 Q