3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr1 = array(0=>'5097',0=>'5097',0=>'5097',0=>'5097',0=>'5097') ; $arr2 = array(0=>'5097',1=>'5131'); $arr = array_merge($arr1, $arr2); print_r($arr);
based on YrEXU
Output for 4.3.0 - 7.2.6
Array ( [0] => 5097 [1] => 5097 [2] => 5131 )