3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "asdf"; $b = array("a", "s", "d", "f", "asdfg"); $a = array($a); $a = array_merge($a, $b); var_dump($a);
Output for 4.3.0 - 7.2.0
array(6) { [0]=> string(4) "asdf" [1]=> string(1) "a" [2]=> string(1) "s" [3]=> string(1) "d" [4]=> string(1) "f" [5]=> string(5) "asdfg" }