3v4l.org

run code in 300+ PHP versions simultaneously
<?php $existing = [87861,178770,680542,190674,685951,956341,611054,683446,321882,926906,800071,509089,463703,528085,528085,694911,334612,334612,710756,417857,715193,22578,527482,887196,710060,746024,725447,105782,799747,833881,357820,533752,750497,624422,720908,669287,988523,832276,639974,639974,496096,496096,759752,607433,607433,583330,314692,599656,484775,823749,823749,823749,499318,499318,778376,613340,1031088,859846,1033103,702845,1036408,587911,279826,1037753,847641,247795,671684,274615,42859,161037,7887,1038148,529291,99374,523510,2182,801223,704492,86388,519109,53092,280813,821434,132585,60661,47357,176151,487640,63296,43616,787115,2964,787355,853351,671066,10743,266086,654266,205730,633152,244300,39730,222675]; $new = [137757, 414551, 104290, 127689, 603850, 269371, 693176, 675443, 53092, 773951, 377317, 738212, 280813, 262156, 715463, 618332, 618332, 17166, 487640, 61083, 12236, 238618, 550178, 230809, 39270, 546974, 309163, 300430, 48212, 800368, 376123, 689354, 98642, 324369, 133449, 875566, 6537, 546974, 505807, 264844, 123070, 850601, 580285, 601603, 680902, 889311, 281440, 509425, 523510, 591499, 860311, 445557, 50042, 303718, 38982, 1817, 299281, 467549, 142605, 222675, 73999, 24382, 821434, 252250, 392176, 850716, 258208, 132585, 60661, 60661, 478202, 745694, 9817, 818004, 176151, 745694, 494053, 359827, 43616, 700196, 745307, 787115, 161679, 141978, 6966, 426110, 494837, 197145, 55288, 358411, 20036, 2964, 671066, 10743, 295282, 573823, 410525, 205730, 850716, 719831, 39730, 324000, 1402, 6966, 239638, 520213, 413090, 242638, 45740, 75421, 499363, 28185, 32654, 230692, 2182, 638717, 230692, 38982, 336400, 121841, 382087, 34488]; $output = array_merge($existing, $new); $unique = array_unique($output); print_r($unique);
Output for 8.1.0 - 8.1.30, 8.2.0 - 8.2.25, 8.3.0 - 8.3.13
Array ( [0] => 87861 [1] => 178770 [2] => 680542 [3] => 190674 [4] => 685951 [5] => 956341 [6] => 611054 [7] => 683446 [8] => 321882 [9] => 926906 [10] => 800071 [11] => 509089 [12] => 463703 [13] => 528085 [15] => 694911 [16] => 334612 [18] => 710756 [19] => 417857 [20] => 715193 [21] => 22578 [22] => 527482 [23] => 887196 [24] => 710060 [25] => 746024 [26] => 725447 [27] => 105782 [28] => 799747 [29] => 833881 [30] => 357820 [31] => 533752 [32] => 750497 [33] => 624422 [34] => 720908 [35] => 669287 [36] => 988523 [37] => 832276 [38] => 639974 [40] => 496096 [42] => 759752 [43] => 607433 [45] => 583330 [46] => 314692 [47] => 599656 [48] => 484775 [49] => 823749 [52] => 499318 [54] => 778376 [55] => 613340 [56] => 1031088 [57] => 859846 [58] => 1033103 [59] => 702845 [60] => 1036408 [61] => 587911 [62] => 279826 [63] => 1037753 [64] => 847641 [65] => 247795 [66] => 671684 [67] => 274615 [68] => 42859 [69] => 161037 [70] => 7887 [71] => 1038148 [72] => 529291 [73] => 99374 [74] => 523510 [75] => 2182 [76] => 801223 [77] => 704492 [78] => 86388 [79] => 519109 [80] => 53092 [81] => 280813 [82] => 821434 [83] => 132585 [84] => 60661 [85] => 47357 [86] => 176151 [87] => 487640 [88] => 63296 [89] => 43616 [90] => 787115 [91] => 2964 [92] => 787355 [93] => 853351 [94] => 671066 [95] => 10743 [96] => 266086 [97] => 654266 [98] => 205730 [99] => 633152 [100] => 244300 [101] => 39730 [102] => 222675 [103] => 137757 [104] => 414551 [105] => 104290 [106] => 127689 [107] => 603850 [108] => 269371 [109] => 693176 [110] => 675443 [112] => 773951 [113] => 377317 [114] => 738212 [116] => 262156 [117] => 715463 [118] => 618332 [120] => 17166 [122] => 61083 [123] => 12236 [124] => 238618 [125] => 550178 [126] => 230809 [127] => 39270 [128] => 546974 [129] => 309163 [130] => 300430 [131] => 48212 [132] => 800368 [133] => 376123 [134] => 689354 [135] => 98642 [136] => 324369 [137] => 133449 [138] => 875566 [139] => 6537 [141] => 505807 [142] => 264844 [143] => 123070 [144] => 850601 [145] => 580285 [146] => 601603 [147] => 680902 [148] => 889311 [149] => 281440 [150] => 509425 [152] => 591499 [153] => 860311 [154] => 445557 [155] => 50042 [156] => 303718 [157] => 38982 [158] => 1817 [159] => 299281 [160] => 467549 [161] => 142605 [163] => 73999 [164] => 24382 [166] => 252250 [167] => 392176 [168] => 850716 [169] => 258208 [173] => 478202 [174] => 745694 [175] => 9817 [176] => 818004 [179] => 494053 [180] => 359827 [182] => 700196 [183] => 745307 [185] => 161679 [186] => 141978 [187] => 6966 [188] => 426110 [189] => 494837 [190] => 197145 [191] => 55288 [192] => 358411 [193] => 20036 [197] => 295282 [198] => 573823 [199] => 410525 [202] => 719831 [204] => 324000 [205] => 1402 [207] => 239638 [208] => 520213 [209] => 413090 [210] => 242638 [211] => 45740 [212] => 75421 [213] => 499363 [214] => 28185 [215] => 32654 [216] => 230692 [218] => 638717 [221] => 336400 [222] => 121841 [223] => 382087 [224] => 34488 )

preferences:
51.86 ms | 418 KiB | 5 Q