3v4l.org

run code in 300+ PHP versions simultaneously
<?php $matrix = [ [1, 2, 3], [4, 5, 6], [7, 8, 9], [10, 11, 12], ]; var_export( array_map( null, ...array_chunk( array_merge(...$matrix), count($matrix) ) ) );

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
158.44 ms | 2052 KiB | 12 Q