3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = []; $b = null; $res = array_merge($a, $b); var_dump($res);
Output for 7.3.0rc3
Warning: array_merge(): Expected parameter 2 to be an array, null given in /in/GWTJF on line 5 NULL
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0beta1
Warning: array_merge(): Argument #2 is not an array in /in/GWTJF on line 5 NULL
Output for hhvm-3.15.4
Warning: Invalid operand type was used: expects array(s) in /in/GWTJF on line 5 NULL