3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $poop = array(); $arr[23] = "poop"; $arr[24] = "fart"; $result = array_merge($poop,$arr); var_dump($result); $somethingElse = $poop + $arr; var_dump($somethingElse);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(2) { [0]=> string(4) "poop" [1]=> string(4) "fart" } array(2) { [23]=> string(4) "poop" [24]=> string(4) "fart" }