3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array( 0 => "http://s1.img-b.com/build.com/imagebase/resized/330x320/nutoneimages/SVC101-l.jpg" ); $array2 = array( 0 => "http://www.build.com/imagebase/resized/x800/nutoneimages/svc101.jpg"); $result = array_merge($array1, $array2); print_r($result); $array3 = array( 0 => "http://s1.img-b.com/build.com/imagebase/resized/330x320/nutoneimages/SVC101-l.jpg" ); $array4 = array( 0 => "http://www.build.com/imagebase/resized/x800/nutoneimages/svc101.jpg"); $result2 = array_merge($array3, $array4); print_r($result2);
based on YrLBe
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => http://s1.img-b.com/build.com/imagebase/resized/330x320/nutoneimages/SVC101-l.jpg [1] => http://www.build.com/imagebase/resized/x800/nutoneimages/svc101.jpg ) Array ( [0] => http://s1.img-b.com/build.com/imagebase/resized/330x320/nutoneimages/SVC101-l.jpg [1] => http://www.build.com/imagebase/resized/x800/nutoneimages/svc101.jpg )