3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $meh = <<<EOT asdf EOT; var_dump(array_merge(array(1,2), $meh));
based on 6fidt
Output for 5.0.0 - 5.1.1, 5.1.3 - 7.1.0
Warning: array_merge(): Argument #2 is not an array in /in/PKrq9 on line 7 NULL
Output for 5.1.2
Warning: array_merge(): Argument #2 is not an array in /in/PKrq9 on line 8 NULL
Output for 4.3.0 - 4.4.9
array(3) { [0]=> int(1) [1]=> int(2) [2]=> string(4) "asdf" }