3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('a' => 1, 'ab' => 2, 'na' => null, 'nb' => 3); $a = array('b' => 10, 'ab' => 20, 'na' => 30, 'nb' => null); var_dump(array_merge($a, $b));
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: b in /in/fZh64 on line 5 Warning: array_merge(): Argument #2 is not an array in /in/fZh64 on line 5 NULL
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: b in /in/fZh64 on line 5 Warning: array_merge(): Argument #2 is not an array in /in/fZh64 on line 5 NULL
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: b in /in/fZh64 on line 5 array(4) { ["b"]=> int(10) ["ab"]=> int(20) ["na"]=> int(30) ["nb"]=> NULL }