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_map(function ($l) { return array_merge($def, $l); }) ////// print_r($arr_lang);
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected 'print_r' (T_STRING) in /in/cMDKG on line 22
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/cMDKG on line 22
Process exited with code 255.