3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = ['645', '28269', '14707', '453', '1', '113690', '1146117', '24098', '516497', '96042', '45274', '19456', '137342', '2628', '311253', '1602', '44277', '866', '84159', '583', '1498', '28295', '2364', '253', '216560', '1319', '66689', '1079', '2067', '14840', '627294', '311967', '536', '2521', '1523', '209196', '4917', '61980', '9846', '2499', '2859', '362158', '20953', '171560', '158067', '9624', '36943', '67313', '20363', '4691', '3208', '141326', '110913', '6695', '23305', '25654', '11894', '4704', '139371', '311', '41660', '2497', '1991', '19', '94134', '1431', '52036', '1184', '333', '82776', '237419', '5335', '107018', '382', '6048', '25109', '304473', '3473', '183563', '629', '18479', '174688', '147174', '31801', '2116', '91032', '5554', '17196', '118153', '1094', '38499', '14', '20702', '28674', '265159', '1265', '13530', '81501', '726', '836', '106952', '197', '18114', '29', '598', '6273', '812181', '661', '423278', '1661', '18148', '4410', '336547', '24887', '140630', '6905', '4999', '247', '109938', '6640', '21709', '9158', '2033', '569', '462273', '183', '321311', '7264', '21303', '41792', '24434', '1768', '25316', '7016', '4078', '3966', '402828', '1521', '145127', '180', '5053', '3331', '911642', '1205', '472577', '12699', '61961', '2092', '160906', '10191', '6579', '24414', '3219', '227', '357262', '527', '239672', '8890', '4456', '503825', '565674', '32063', '106483', '18842', '1249', '25800', '820423', '8615', '401922', '13836', '24526', '24542', '392528', '660', '271654', '5451', '7946', '10688', '246927', '17594', '74863', '17756', '482', '33374', '139339', '9954', '3873', '59117', '2625', '1011', '1071578', '1573', '533084', '12442', '36403', '17896', '710858', '4826', '377374', '13904', '27671', '173', '347524', '50822', '14948', '813', '1948', '203663', '1032', '56194', '24957', '2935', '141599', '47289', '17439', '65962', '25872', '2592', '24067', '24740', '12393', '268424', '40451', '17220', '19050', '222135', '7703', '39083', '752', '3676', '23071', '93015', '44493', '7028', '416', '4435', '6742', '95518', '10808', '14210', '24', '1884', '143432', '65837', '5894', '6323', '43947', '3828', '20369', '165188', '142', '80696', '121', '7541', '7527', '76672', '30581', '10770', '309', '2850', '5358', '33520', '5120', '44696', '7722', '4342', '4609', '199071', '481', '19561', '70826', '3206', '3830', '53840', '1871', '45174', '15', '7718', '922', '66390', '6784', '24039', '183', '2162', '27773', '417127', '26686', '202104', '17826', '3635', '68395', '102298', '4909', '23563', '5401', '989', '65699', '63', '61657', '16151', '497', '349217', '2530390', '92871', '654695', '106714', '10574', '16316', '498678', '2633', '286567', '7113', '4263', '2881', '1209506', '6826', '202359', '215244', '11901', '863', '405543', '733', '65124', '38347', '3032', '35917', '614092', '4644', '272797', '5770', '6094', '7472', '6818', '6503', '155961', '15105', '4148', '1429', '161263', '139', '14285', '80570', '16765', '108435', '43', '6086', '42687', '2056', '10801', '851323', '431', '453606', '21244', '15598', '158103', '352402', '18463', '74417', '2217', '5178', '325513', '541898', '38586', '167485', '1017', '19068', '91573', '310628', '18085', '87377', '2543', '4874', '3344', '484362', '1602', '173367', '183', '4644', '100934', '76428', '18149', '30796', '3939', '3915', '1674', '18159', '3081', '13956', '10366', '4699', '20387', '176753', '8469', '80794', '24070', '3101', '13714', '123225', '6790', '89354', '20394', '2002', '2904', '123053', '368', '51071', '494', '639', '83003', '143927', '9923', '62661', '5948', '4993', '203', '51154', '4762', '6735', '20302', '1671', '484', '404863', '3328', '114892', '71173', '4115', '2978', '581950', '139', '308289', '1020', '29492', '5354', '495994', '6400', '170144', '38424', '6518', '8928', '229699', '506', '39536', '5482', '3', '2810', '302985', '26218', '197346', '7800', '3096', '2461', '130875', '2397', '36899', '608', '3004', '112074', '295633', '16808', '149014', '4727', '18461', '1732', '244363', '967', '162026', '6048', '10822', '7418', '634525', '11295', '389990', '18753', '26304', '47835', '355367', '1214', '50710', '107647', '10275', '48619', '12278', '3580', '8589', '82', '686', '502', '253145', '24424', '33670', '1312', '2857', '45', '545', '4500', '146300', '387220', '29196', '116144', '9713', '28746', '168', '8006', '2116', '4153', '11', '984', '5114', '779013', '34', '231965', '2782', '10563', '1976', '106796', '1619', '39194', '9993', '1961', '52250', '47036', '4167', '2010', '46028', '841', '3602', '5170', '48', '2450', '19661', '922690', '10430', '464571', '33278', '14320', '219', '24922', '160809', '1674', '6219', '1370', '45643', '145869', '174', '12891', '332', '11639', '3681', '69043', '12944', '7131', '4464', '17380', '583', '88217', '4989', '3141', '5001', '65367', '6217', '159721', '6710', '9372', '982', '175917', '732', '3147', '6424', '36309', '5974', '152075', '16273', '12106', '267', '44633', '1221', '2300', '9095', '1307', '162906', '8842', '200740', '37039', '46794', '3803', '35697', '167646', '36399', '133191', '39852', '4513', '2618', '2747', '842', '178454', '5894', '801', '4367', '198600', '649', '122189', '684', '1880', '682', '7393', '58132', '6797', '41', '11334', '88278', '6195', '6191', '161', '82190', '24328', '2433', '7938', '1575', '181', '174847', '115920', '18756', '108679', '117888', '3101', '84364', '291138', '46694', '145903', '22954', '1172', '26132', '82507', '3167', '80392', '2856', '5518', '70908', '319080', '27552', '78752', '29911', '6065', '25', '860', '234234', '3939', '11287', '65514', '2453', '6362', '189405', '4304', '46578', '19714', '14164', '9251', '291437', '862', '13556', '86271', '558', '31112', '257656', '15015', '127817', '348', '6819', '18976', '859058', '590', '179835', '77228', '4534', '88248', '657474', '14338', '420200', '26294', '9502', '1223', '407675', '5999', '135763', '16873', '10734', '23357', '1960392', '5488', '616207', '16272', '64534', '13565', '359', '55', '20381', '224662', '8759', '117832', '11443', '12972', '14961', '70010', '4035', '47490', '4133', '8127', '17478', '85695', '2777', '58710', '8165', '1570', '80795', '118280', '11028', '11510', '20852', '4616', '16203', '11564', '9973', '321', '30578', '794', '30', '4185', '37841', '3215', '125212', '9846', '2157']; $total = 0; foreach($arr as $a) $total += $a; echo $total;
Output for 5.4.0 - 7.1.0
61507417
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/qfksl 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/qfksl on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/qfksl on line 3
Process exited with code 255.