3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $n17 = [1000005005, 1000005043, 1000005048, 1000005051, 1000005054, 1000005057, 1000005058, 1000005059, 1000005062, 1000005078, 1000005080, 1000005088, 1000005101, 1000005107, 1000005110, 1000005113, 1000005116, 1000005126, 1000005145, 1000005162, 1000005168, 1000005174, 1000006002, 1000008007, 1000008061, 1000008093, 1000012502, 1000012503, 1000012514, 1000017509, 1000020034, 1000020040, 1000020041, 1000020055, 1000020063, 1000020064, 1000020070, 1000020073, 1000020075, 1000020076, 1000020077, 1000020084, 1000020095, 1000020108, 1000020120, 1000022500, 1000022505, 1000022506, 1000022512, 1000022513, 1000022516, 1000022517, 1000022518, 1000022520, 1000022521, 1000022522, 1000022523, 1000022524, 1000022527, 1000022541, 1000022560, 1000022566, 1000022573, 1000022578, 1000022582, 1000022583, 1000022586, 1000022587, 1000022589, 1000022592, 1000022598, 1000022599, 1000022600, 1000022601, 1000022602, 1000022604, 1000022614, 1000022617, 1000022618, 1000022619, 1000022620, 1000022625, 1000022626, 1000022627, 1000022630, 1000022631, 1000022632, 1000022633, 1000022634, 1000022639, 1000022640, 1000022641, 1000022646, 1000022647, 1000022659, 1000022664, 1000022704, 1000022706, 1000022717, 1000022720, 1000022725, 1000022726, 1000022727, 1000022731, 1000022739, 1000022740, 1000022743, 1000022745, 1000022746, 1000022748, 1000022755, 1000022756, 1000022758, 1000022763, 1000022766, 1000022767, 1000022771, 1000022778, 1000022783, 1000022786, 1000022789, 1000022794, 1000022798, 1000022799, 1000022801, 1000022811, 1000022814, 1000022816, 1000022818, 1000022819, 1000022822, 1000022823, 1000022825, 1000022826, 1000022828, 1000022830, 1000022831, 1000022832, 1000022839, 1000022840, 1000022841, 1000022844, 1000022849, 1000022850, 1000022851, 1000022852, 1000022853, 1000022855, 1000022856, 1000022857, 1000022860, 1000022861, 1000022864, 1000022866, 1000022867, 1000022874, 1000022882, 1000022884, 1000022885, 1000022892, 1000022893, 1000022894, 1000022896, 1000022898, 1000022899, 1000022902, 1000022908, 1000022911, 1000022912, 1000022915, 1000022916, 1000022917, 1000022918, 1000022920, 1000022924, 1000022929, 1000022933, 1000022937, 1000022939, 1000022941, 1000022947, 1000022956, 1000022971, 1000022980, 1000022981, 1000022984, 1000022993, 1000022994, 1000023000, 1000023003, 1000023008, 1000023009, 1000023010, 1000023011, 1000023012, 1000023013, 1000023014, 1000023015, 1000023016, 1000023017, 1000023023, 1000023025, 1000023042, 1000023077, 1000023094, 1000023103, 1000023118, 1000023120, 1000023122, 1000023123, 1000023132, 1000023136, 1000023139, 1000023140, 1000023141, 1000023142, 1000023143, 1000023144, 1000023152, 1000023153, 1000023154, 1000023157, 1000023160, 1000023161, 1000023182, 1000023187, 1000023189, 1000023194, 1000023206, 1000023425, 1000023436, 1000023437, 1000023439, 1000023454, 1000023469, 1000023473, 1000023481, 1000023485, 1000023491, 1000023492, 1000023493, 1000023502, 1000023503, 1000023504, 1000023505, 1000023506, 1000023513, 1000023520, 1000023529, 1000023530, 1000023531, 1000023532, 1000023533, 1000023534, 1000023560, 1000023564, 1000023569, 1000023571, 1000023573, 1000023574, 1000023575, 1000023578, 1000023579, 1000023580, 1000023582, 1000023584, 1000023587, 1000023588, 1000023590, 1000023598, 1000023599, 1000023600, 1000023606, 1000023608, 1000023609, 1000023612, 1000024508, 1000024513, 1000024517, 1000024518, 1000024525, 1000024526, 1000024549, 1000024562, 1000024567, 1000024569, 1000024653, 1000024656, 1000024714, 1000024734, 1000024744, 1000024758, 1000024759, 1000024760, 1000024761, 1000024762, 1000024767, 1000024771, 1000024777, 1000024780, 1000024782, 1000024784, 1000024785, 1000024788, 1000024847, 1000024850, 1000024858, 1000024860, 1000024862, 1000024864, 1000024879, 1000024888, 1000024911, 1000024928, 1000024930, 1000024933, 1000024941, 1000024945, 1000024961, 1000024997, 1000024998, 1000025001, 1000025005, 1000025010, 1000025014, 1000025023, 1000025024, 1000025038, 1000025044, 1000025048, 1000025049, 1000025050, 1000025051, 1000025052, 1000025053, 1000025057, 1000025059, 1000025060, 1000025066, 1000025067, 1000025068, 1000025069, 1000025070, 1000025072, 1000025087, 1000025106, 1000025108, 1000025117, 1000025120, 1000025122, 1000025124, 1000025126, 1000025127, 1000025133, 1000025134, 1000025136, 1000025139, 1000025141, 1000025142, 1000025143, 1000025148, 1000025151, 1000025154, 1000025156, 1000025157, 1000025159, 1000025160, 1000025162, 1000025164, 1000025166, 1000025172, 1000025175, 1000025176, 1000025177, 1000025179, 1000025181, 1000025183, 1000025184, 1000025185, 1000025188, 1000025189, 1000025191, 1000025193, 1000025194, 1000025195, 1000025198, 1000025214, 1000025217, 1000025221, 1000025223, 1000025226, 1000026007, 1000027508, 1000027541, 1000027604, 1000027606, 1000027612, 1000027619, 1000027620, 1000030012, 1000030372, 1000030376, 1000030377, 1000030378, 1000030381, 1000030387, 1000030413, 1000030414, 1000030441, 1000030442, 1000030443, 1000030446, 1000030450, 1000030451, 1000030454, 1000030456, 1000030457, 1000030459, 1000030460, 1000030491, 1000030492, 1000030499, 1000030518, 1000030520, 1000030538, 1000030540, 1000030569, 1000030576, 1000030577, 1000030579, 1000030580]; $n18 = [1000005000, 1000005005, 1000005007, 1000005028, 1000005034, 1000005035, 1000005043, 1000005046, 1000005048, 1000005051, 1000005054, 1000005057, 1000005058, 1000005059, 1000005062, 1000005078, 1000005080, 1000005088, 1000005101, 1000005107, 1000005108, 1000005110, 1000005113, 1000005116, 1000005122, 1000005126, 1000005145, 1000005162, 1000005168, 1000005174, 1000006002, 1000007002, 1000008007, 1000008061, 1000008062, 1000008069, 1000008075, 1000008085, 1000008093, 1000012502, 1000012503, 1000012514, 1000017509, 1000020009, 1000020015, 1000020017, 1000020034, 1000020040, 1000020041, 1000020055, 1000020057, 1000020061, 1000020063, 1000020064, 1000020065, 1000020070, 1000020071, 1000020073, 1000020074, 1000020075, 1000020076, 1000020077, 1000020084, 1000020088, 1000020095, 1000020096, 1000020104, 1000020106, 1000020108, 1000020109, 1000020120, 1000022500, 1000022505, 1000022506, 1000022512, 1000022513, 1000022516, 1000022517, 1000022518, 1000022519, 1000022520, 1000022521, 1000022522, 1000022523, 1000022524, 1000022527, 1000022530, 1000022532, 1000022533, 1000022537, 1000022540, 1000022541, 1000022548, 1000022552, 1000022555, 1000022560, 1000022563, 1000022566, 1000022573, 1000022577, 1000022578, 1000022582, 1000022583, 1000022586, 1000022587, 1000022589, 1000022592, 1000022595, 1000022598, 1000022599, 1000022600, 1000022601, 1000022602, 1000022604, 1000022609, 1000022614, 1000022617, 1000022618, 1000022619, 1000022620, 1000022625, 1000022626, 1000022627, 1000022630, 1000022631, 1000022632, 1000022633, 1000022634, 1000022639, 1000022640, 1000022641, 1000022646, 1000022647, 1000022659, 1000022664, 1000022666, 1000022669, 1000022678, 1000022683, 1000022703, 1000022704, 1000022706, 1000022709, 1000022717, 1000022720, 1000022725, 1000022726, 1000022727, 1000022731, 1000022738, 1000022739, 1000022740, 1000022741, 1000022743, 1000022744, 1000022745, 1000022746, 1000022748, 1000022750, 1000022751, 1000022755, 1000022756, 1000022758, 1000022763, 1000022766, 1000022767, 1000022771, 1000022778, 1000022783, 1000022786, 1000022787, 1000022789, 1000022794, 1000022797, 1000022798, 1000022799, 1000022801, 1000022803, 1000022811, 1000022812, 1000022814, 1000022816, 1000022818, 1000022819, 1000022822, 1000022823, 1000022825, 1000022826, 1000022828, 1000022830, 1000022831, 1000022832, 1000022834, 1000022839, 1000022840, 1000022841, 1000022842, 1000022843, 1000022844, 1000022849, 1000022850, 1000022851, 1000022852, 1000022853, 1000022855, 1000022856, 1000022857, 1000022860, 1000022861, 1000022864, 1000022866, 1000022867, 1000022874, 1000022882, 1000022884, 1000022885, 1000022892, 1000022893, 1000022894, 1000022896, 1000022898, 1000022899, 1000022902, 1000022908, 1000022911, 1000022912, 1000022913, 1000022915, 1000022916, 1000022917, 1000022918, 1000022920, 1000022921, 1000022924, 1000022929, 1000022933, 1000022937, 1000022939, 1000022941, 1000022947, 1000022956, 1000022971, 1000022980, 1000022981, 1000022984, 1000022993, 1000022994, 1000023000, 1000023003, 1000023004, 1000023008, 1000023009, 1000023010, 1000023011, 1000023012, 1000023013, 1000023014, 1000023015, 1000023016, 1000023017, 1000023023, 1000023025, 1000023037, 1000023042, 1000023050, 1000023077, 1000023085, 1000023094, 1000023103, 1000023118, 1000023120, 1000023122, 1000023123, 1000023132, 1000023136, 1000023139, 1000023140, 1000023141, 1000023142, 1000023143, 1000023144, 1000023152, 1000023153, 1000023154, 1000023157, 1000023160, 1000023161, 1000023171, 1000023172, 1000023182, 1000023187, 1000023189, 1000023194, 1000023206, 1000023425, 1000023427, 1000023436, 1000023437, 1000023439, 1000023454, 1000023469, 1000023473, 1000023481, 1000023485, 1000023491, 1000023492, 1000023493, 1000023502, 1000023503, 1000023504, 1000023505, 1000023506, 1000023513, 1000023520, 1000023529, 1000023530, 1000023531, 1000023532, 1000023533, 1000023534, 1000023560, 1000023564, 1000023569, 1000023571, 1000023573, 1000023574, 1000023575, 1000023578, 1000023579, 1000023580, 1000023582, 1000023584, 1000023587, 1000023588, 1000023590, 1000023598, 1000023599, 1000023600, 1000023606, 1000023608, 1000023609, 1000023612, 1000024505, 1000024507, 1000024508, 1000024513, 1000024517, 1000024518, 1000024525, 1000024526, 1000024549, 1000024562, 1000024567, 1000024569, 1000024653, 1000024656, 1000024714, 1000024734, 1000024744, 1000024758, 1000024759, 1000024760, 1000024761, 1000024762, 1000024767, 1000024771, 1000024777, 1000024780, 1000024782, 1000024784, 1000024785, 1000024787, 1000024788, 1000024789, 1000024795, 1000024847, 1000024850, 1000024858, 1000024860, 1000024862, 1000024863, 1000024864, 1000024866, 1000024879, 1000024888, 1000024911, 1000024928, 1000024930, 1000024933, 1000024941, 1000024945, 1000024961, 1000024997, 1000024998, 1000025001, 1000025005, 1000025010, 1000025014, 1000025023, 1000025024, 1000025038, 1000025044, 1000025046, 1000025048, 1000025049, 1000025050, 1000025051, 1000025052, 1000025053, 1000025057, 1000025059, 1000025060, 1000025062, 1000025066, 1000025067, 1000025068, 1000025069, 1000025070, 1000025072, 1000025083, 1000025087, 1000025089, 1000025106, 1000025108, 1000025117, 1000025120, 1000025122, 1000025124, 1000025126, 1000025127, 1000025133, 1000025134, 1000025136, 1000025139, 1000025141, 1000025142, 1000025148, 1000025151, 1000025154, 1000025156, 1000025157, 1000025159, 1000025160, 1000025162, 1000025164, 1000025166, 1000025172, 1000025175, 1000025176, 1000025177, 1000025179, 1000025181, 1000025183, 1000025184, 1000025185, 1000025188, 1000025189, 1000025191, 1000025193, 1000025194, 1000025195, 1000025198, 1000025209, 1000025214, 1000025217, 1000025221, 1000025223, 1000026007, 1000027508, 1000027541, 1000027604, 1000027606, 1000027612, 1000027619, 1000027620, 1000030000, 1000030006, 1000030012, 1000030017, 1000030018, 1000030019, 1000030020, 1000030026, 1000030372, 1000030376, 1000030377, 1000030378, 1000030381, 1000030387, 1000030396, 1000030405, 1000030407, 1000030409, 1000030412, 1000030413, 1000030414, 1000030423, 1000030428, 1000030441, 1000030442, 1000030443, 1000030446, 1000030450, 1000030451, 1000030454, 1000030455, 1000030456, 1000030457, 1000030459, 1000030460, 1000030467, 1000030468, 1000030485, 1000030493, 1000030494, 1000030518, 1000030520, 1000030538, 1000030540, 1000030569, 1000030572, 1000030573, 1000030575, 1000030576, 1000030577, 1000030579, 1000030580, 1000030598, 1000030599, 1000030600, 1000030601, 1000030603, 1000030604]; $diff = array_diff( $n18, $n17); $count = count( $diff); echo "There are $count differences.\n"; print_r( $diff);
Output for 5.4.0 - 7.1.0
There are 107 differences. Array ( [0] => 1000005000 [2] => 1000005007 [3] => 1000005028 [4] => 1000005034 [5] => 1000005035 [7] => 1000005046 [20] => 1000005108 [24] => 1000005122 [31] => 1000007002 [34] => 1000008062 [35] => 1000008069 [36] => 1000008075 [37] => 1000008085 [43] => 1000020009 [44] => 1000020015 [45] => 1000020017 [50] => 1000020057 [51] => 1000020061 [54] => 1000020065 [56] => 1000020071 [58] => 1000020074 [63] => 1000020088 [65] => 1000020096 [66] => 1000020104 [67] => 1000020106 [69] => 1000020109 [79] => 1000022519 [86] => 1000022530 [87] => 1000022532 [88] => 1000022533 [89] => 1000022537 [90] => 1000022540 [92] => 1000022548 [93] => 1000022552 [94] => 1000022555 [96] => 1000022563 [99] => 1000022577 [107] => 1000022595 [114] => 1000022609 [135] => 1000022666 [136] => 1000022669 [137] => 1000022678 [138] => 1000022683 [139] => 1000022703 [142] => 1000022709 [149] => 1000022738 [152] => 1000022741 [154] => 1000022744 [158] => 1000022750 [159] => 1000022751 [170] => 1000022787 [173] => 1000022797 [177] => 1000022803 [179] => 1000022812 [192] => 1000022834 [196] => 1000022842 [197] => 1000022843 [226] => 1000022913 [232] => 1000022921 [249] => 1000023004 [262] => 1000023037 [264] => 1000023050 [266] => 1000023085 [287] => 1000023171 [288] => 1000023172 [295] => 1000023427 [342] => 1000024505 [343] => 1000024507 [371] => 1000024787 [373] => 1000024789 [374] => 1000024795 [380] => 1000024863 [382] => 1000024866 [402] => 1000025046 [412] => 1000025062 [419] => 1000025083 [421] => 1000025089 [462] => 1000025209 [475] => 1000030000 [476] => 1000030006 [478] => 1000030017 [479] => 1000030018 [480] => 1000030019 [481] => 1000030020 [482] => 1000030026 [489] => 1000030396 [490] => 1000030405 [491] => 1000030407 [492] => 1000030409 [493] => 1000030412 [496] => 1000030423 [497] => 1000030428 [505] => 1000030455 [510] => 1000030467 [511] => 1000030468 [512] => 1000030485 [513] => 1000030493 [514] => 1000030494 [520] => 1000030572 [521] => 1000030573 [522] => 1000030575 [527] => 1000030598 [528] => 1000030599 [529] => 1000030600 [530] => 1000030601 [531] => 1000030603 [532] => 1000030604 )
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/MjPjM on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/MjPjM on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/MjPjM on line 3
Process exited with code 255.