3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ [1, 2, 3, 4], ['one', 'two', 'three', 'four'] ]; // I want to add this functin to the PHP function combine_array_items ( $arr ) { return array_map(function (...$r) { return $r; }, ...$arr); } print_r( combine_array_items ( $arr ) );

preferences:
165.47 ms | 405 KiB | 5 Q