3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tests = array( 'test1' => array( '11', '22', '33', '44' ), 'test2' => array( '44', '55', '66', '77' ) ); $new = array(); foreach( $tests as $test ) { $new += $test; } print_r($new);
Output for 4.3.0 - 7.1.0
Array ( [0] => 11 [1] => 22 [2] => 33 [3] => 44 )