3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr1 = range(0,9); $arr2 = range('a','z'); $pattern = array_merge($arr1, $arr2); var_dump($pattern);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(36) { [0]=> int(0) [1]=> int(1) [2]=> int(2) [3]=> int(3) [4]=> int(4) [5]=> int(5) [6]=> int(6) [7]=> int(7) [8]=> int(8) [9]=> int(9) [10]=> string(1) "a" [11]=> string(1) "b" [12]=> string(1) "c" [13]=> string(1) "d" [14]=> string(1) "e" [15]=> string(1) "f" [16]=> string(1) "g" [17]=> string(1) "h" [18]=> string(1) "i" [19]=> string(1) "j" [20]=> string(1) "k" [21]=> string(1) "l" [22]=> string(1) "m" [23]=> string(1) "n" [24]=> string(1) "o" [25]=> string(1) "p" [26]=> string(1) "q" [27]=> string(1) "r" [28]=> string(1) "s" [29]=> string(1) "t" [30]=> string(1) "u" [31]=> string(1) "v" [32]=> string(1) "w" [33]=> string(1) "x" [34]=> string(1) "y" [35]=> string(1) "z" }