3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $y = array_merge(array('a'=>2, 'b'=>4, 'c'=>6), (array)$x); var_dump($y);
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: x in /in/1OKkt on line 2 array(3) { ["a"]=> int(2) ["b"]=> int(4) ["c"]=> int(6) }
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: x in /in/1OKkt on line 2 array(3) { ["a"]=> int(2) ["b"]=> int(4) ["c"]=> int(6) }