3v4l.org

run code in 300+ PHP versions simultaneously
<?php $booklist = [ 'Peppa / Season 2 / 43 The Quarrel / Page 1', 'Nursery Rhymes / Wheels On The Bus / Page 1', 'Wonderskills / Starter Book 2 / Unit 1 At The Firehouse / Part 3 / Page 3', 'Oxford Phonics World / Level 2 Short Vowels / Unit 1 Short A / Page 7', 'Peppa / Season 2 / 43 The Quarrel / Page 1', 'Nursery Rhymes / Twinkle Twinkle / Page 1', 'Wonderskills / Starter Book 2 / Unit 1 At The Firehouse / Part 2 / Page 17', 'Oxford Phonics World / Level 1 The Alphabet / Unit 8 / Review W X Y Z / Page 2', 'Peppa / Season 2 / 42 Granny And Grandpas Attic / Page 1', 'Nursery Rhymes / The Phonics Song / Page 1', 'Wonderskills / Starter Book 2 / Unit 1 At The Firehouse / Part 2 / Page 4', 'Peter Pan / Level 1 / Page 1', 'Peppa / Season 2 / 42 Granny And Grandpas Attic / Page 1', 'Nursery Rhymes / The Phonics Song / Page 1', 'Donald Duck / Page 19', 'Donald Duck / Page 18', 'Oxford Phonics World / Level 1 The Alphabet / Unit 8 / Letter Z / Page 2', ]; $result = []; foreach ($booklist as $book) { $result[strtok($book, '/')] ??= $book; } var_export(array_values($result));

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.120.0120.00924.17
8.4.110.0070.00322.63
8.4.100.0100.01018.84
8.4.90.0060.00520.68
8.4.80.0110.00319.00
8.4.70.0110.00917.89
8.4.60.0110.00518.72
8.4.50.0130.00718.70
8.4.40.0070.01118.76
8.4.30.0070.01118.70
8.4.20.0070.01419.50
8.4.10.0000.00919.40
8.3.250.0070.00918.97
8.3.240.0150.00417.14
8.3.230.0100.00916.28
8.3.220.0100.00918.80
8.3.210.0110.00916.61
8.3.200.0030.00616.73
8.3.190.0130.00717.37
8.3.180.0080.01017.38
8.3.170.0070.00720.81
8.3.160.0000.01517.20
8.3.150.0100.00717.14
8.3.140.0070.01116.79
8.3.130.0030.00718.50
8.3.120.0070.00418.90
8.3.110.0040.00418.48
8.3.100.0080.00416.53
8.3.90.0030.00526.77
8.3.80.0070.00318.43
8.3.70.0100.01016.75
8.3.60.0460.01825.92
8.3.50.0070.01325.92
8.3.40.0330.01725.92
8.3.30.0290.01725.92
8.3.20.0270.01425.92
8.3.10.0300.01325.92
8.3.00.0310.01125.92
8.2.290.0100.00820.77
8.2.280.0120.00718.32
8.2.270.0070.01018.53
8.2.260.0070.01118.12
8.2.250.0000.00916.73
8.2.240.0060.00318.86
8.2.230.0130.00720.94
8.2.220.0070.00324.06
8.2.210.0080.00026.77
8.2.200.0000.00916.63
8.2.190.0100.01016.71
8.2.180.0380.00425.92
8.2.170.0240.01025.92
8.2.160.0310.00325.92
8.2.150.0330.00425.92
8.2.140.0340.00025.92
8.2.130.0340.00825.92
8.2.120.0290.00625.92
8.2.110.0300.01225.92
8.2.100.0300.00725.92
8.2.90.0330.00325.92
8.2.80.0270.01625.92
8.2.70.0390.01525.92
8.2.60.0330.00025.92
8.2.50.0420.00625.92
8.2.40.0350.01025.92
8.2.30.0260.01925.92
8.2.20.0370.00425.92
8.2.10.0190.01525.92
8.2.00.0240.00825.92
8.1.330.0120.00722.17
8.1.320.0120.00716.27
8.1.310.0120.00616.89
8.1.300.0040.01216.78
8.1.290.0030.00630.84
8.1.280.0190.01525.92
8.1.270.0300.01225.92
8.1.260.0340.00025.92
8.1.250.0280.00725.92
8.1.240.0310.00325.92
8.1.230.0300.00725.92
8.1.220.0250.01125.92
8.1.210.0260.01325.92
8.1.200.0250.00825.92
8.1.190.0250.01425.92
8.1.180.0270.01525.92
8.1.170.0280.01425.92
8.1.160.0330.00725.92
8.1.150.0350.00725.92
8.1.140.0350.00825.92
8.1.130.0260.01625.92
8.1.120.0300.01025.92
8.1.110.0210.01825.92
8.1.100.0360.00925.92
8.1.90.0260.01125.92
8.1.80.0310.00625.92
8.1.70.0330.00425.92
8.1.60.0320.00925.92
8.1.50.0360.01125.92
8.1.40.0360.00725.92
8.1.30.0360.01125.92
8.1.20.0330.01125.92
8.1.10.0280.01325.92
8.1.00.0270.00925.92

preferences:
29.95 ms | 403 KiB | 5 Q