3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = [ [ "id" => 1234, "name" => "John" ], [ "id" => 1235, "name" => "doe" ] ]; $b = [ [ "age" => 12 ], [ "age" => 13 ] ]; $c = array_map('array_merge', $a, $b); print_r($c);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
205.71 ms | 3441 KiB | 10 Q