3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $def = array('a'=>1, 'b'=>2); //////// $arr_lang = array('de' => array('a'=>3, 'c'=>4)); $arr_lang = array_merge($def , $arr_lang['a']); ////// print_r($arr_lang);
Output for 5.3.0 - 7.1.0
Notice: Undefined index: a in /in/JJrtU on line 11 Warning: array_merge(): Argument #2 is not an array in /in/JJrtU on line 11
Output for 5.0.0 - 5.2.17
Notice: Undefined index: a in /in/JJrtU on line 11 Warning: array_merge(): Argument #2 is not an array in /in/JJrtU on line 11
Output for 4.3.0 - 4.4.9
Notice: Undefined index: a in /in/JJrtU on line 11 Array ( [a] => 1 [b] => 2 )