3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array1 = array(0 => '00', 2 => '02', 3 => '03'); $array2 = array(1 => '11', 3 => '13', 4 => '14'); $result = array_merge($array1, $array2); var_dump($result);
based on LhAkY
Output for 4.3.0 - 7.3.0rc4
array(6) { [0]=> string(2) "00" [1]=> string(2) "02" [2]=> string(2) "03" [3]=> string(2) "11" [4]=> string(2) "13" [5]=> string(2) "14" }