3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = array_merge(null, array(1,23,4)); var_dump($x);
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_merge(): Argument #1 is not an array in /in/7BAIM on line 2 NULL
Output for hhvm-3.10.0 - 3.12.0
Warning: array_merge() expects parameter 1 to be array, null given in /in/7BAIM on line 2 NULL
Output for 4.3.0 - 4.4.9
array(3) { [0]=> int(1) [1]=> int(23) [2]=> int(4) }