3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var1 = 'Hello'; $var2 = 'World'; var_dump( array_merge( $var1, $var2 ) );
based on huFnG
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_merge(): Argument #1 is not an array in /in/TV5Hf on line 6 NULL
Output for hhvm-3.10.0 - 3.12.0
Warning: array_merge() expects parameter 1 to be array, string given in /in/TV5Hf on line 6 NULL
Output for 5.0.0 - 5.2.17
Warning: array_merge(): Argument #1 is not an array in /in/TV5Hf on line 6 Warning: array_merge(): Argument #2 is not an array in /in/TV5Hf on line 6 NULL
Output for 4.3.0 - 4.4.9
array(2) { [0]=> string(5) "Hello" [1]=> string(5) "World" }