3v4l.org

run code in 300+ PHP versions simultaneously
<?php $insertData = [ [ 'test' => '1', 'test1' => '2', ], [ 'test' => '3', 'test1' => '4', ] ]; $values = []; array_map( fn (array $row) => array_push($values, ...array_values($row)), $insertData ); var_dump( ($values), );
Output for 8.1.0 - 8.1.29, 8.2.0 - 8.2.23, 8.3.0 - 8.3.11
array(0) { }

preferences:
43.57 ms | 406 KiB | 5 Q