3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ [ 'id' => 12345 ], [ 'id' => 54321 ] ]; $array2 = [ [ 'date_entered' => 'today' ], [ 'date entered' => 'yesterday' ] ]; $result = array(); foreach($array1 as $key => $value){ $result[] = $array1[$key] + $array2[$key]; } print_r($result); ?>

preferences:
27.78 ms | 404 KiB | 5 Q