3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var = null; var_dump(array_merge($var, array('foobar')));
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_merge(): Argument #1 is not an array in /in/AV03Z on line 4 NULL
Output for hhvm-3.10.0 - 3.12.0
Warning: array_merge() expects parameter 1 to be array, null given in /in/AV03Z on line 4 NULL
Output for 5.0.0 - 5.2.2
<br /> <b>Warning</b>: array_merge() [<a href='function.array-merge'>function.array-merge</a>]: Argument #1 is not an array in <b>/in/AV03Z</b> on line <b>4</b><br /> NULL
Output for 4.3.0 - 4.4.9
array(1) { [0]=> string(6) "foobar" }