3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input = Array(0 => 1); $input = Array(0 => 2); $result = call_user_func_array("array_merge", $input); var_export($result);
Output for 5.0.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_merge(): Argument #1 is not an array in /in/Acj2a on line 5 NULL
Output for hhvm-3.12.0
Warning: array_merge() expects parameter 1 to be array, integer given in /in/Acj2a on line 5 NULL
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 4.4.9
array ( 0 => 2, )