3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Say we have a 74-page file $num_pages = 74; // Fill and array. $pages = range(1, $num_pages); $sections = array(); for ($i = 1; $i <= $pages; $i = $i+2) { $next = $i+1; $sections[] = "pdftk A=the.pdf cat A$i-$next output the_pages_$i-$next.pdf"; } print_r($sections);

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.3.70.0500.13573.96
8.3.60.0740.14574.11
8.3.50.0680.14773.86
8.3.40.0430.05747.32
8.3.30.0330.09347.09
8.3.20.0260.03349.02
8.3.10.0100.07850.65
8.3.00.0070.04049.20
8.2.180.0700.12674.00
8.2.170.0400.07347.24
8.2.160.0430.05748.88
8.2.150.0360.06047.38
8.2.140.0230.03049.20
8.2.130.0160.03348.03
8.2.120.0270.06049.18
8.2.110.0130.05649.29
8.2.100.0220.05846.39
8.2.90.0070.06547.57
8.2.80.0170.05446.31
8.2.70.0200.05346.12
8.2.60.0060.07146.54
8.2.50.0130.05846.30
8.2.40.0130.05648.84
8.2.30.0170.05148.11
8.2.20.0240.04846.64
8.2.10.0070.06746.50
8.2.00.0130.05646.46
8.1.280.0730.15376.49
8.1.270.0170.03450.73
8.1.260.0140.03250.97
8.1.250.0220.03349.20
8.1.240.0110.04948.19
8.1.230.0230.05547.63
8.1.220.0130.05246.29
8.1.210.0160.04845.88
8.1.200.0130.05345.81
8.1.190.0100.05645.77
8.1.180.0100.05545.91
8.1.170.0130.05047.86
8.1.160.0070.05747.31
8.1.150.0070.05947.47
8.1.140.0170.05047.96
8.1.130.0030.06747.26
8.1.120.0100.05245.82
8.1.110.0160.04845.84
8.1.100.0100.05745.84
8.1.90.0100.05645.88
8.1.80.0260.03945.79
8.1.70.0130.05245.91
8.1.60.0070.06546.01
8.1.50.0200.05145.77
8.1.40.0170.05345.88
8.1.30.0140.05845.95
8.1.20.0030.06745.98
8.1.10.0370.11477.87
8.1.00.0400.10777.70
8.0.300.0270.09480.56
8.0.290.0170.12176.88
8.0.280.0370.10078.71
8.0.270.0330.10177.40
8.0.260.0300.10076.96
8.0.250.0170.11677.05
8.0.240.0360.12777.17
8.0.230.0230.11177.07
8.0.220.0230.10677.03
8.0.210.0260.10877.12
8.0.200.0100.12577.21
8.0.190.0300.11277.08
8.0.180.0640.11777.01
8.0.170.0290.11577.12
8.0.160.0360.11277.13
8.0.150.0330.11276.94
8.0.140.0270.11776.95
8.0.130.0800.249132.38
8.0.120.0360.11277.00
8.0.110.0270.11477.10
8.0.100.0200.12476.98
8.0.90.0370.11376.98
8.0.80.0890.22177.09
8.0.70.0330.11376.93
8.0.60.0270.12177.10
8.0.50.0230.11676.92
8.0.30.0570.14577.30
8.0.20.0850.19177.14
8.0.10.0100.13277.11
8.0.00.0670.18476.96
7.4.330.0170.12173.74
7.4.320.0270.10476.65
7.4.300.0330.10076.73
7.4.290.0330.11276.55
7.4.280.0270.12176.63
7.4.270.0130.13176.67
7.4.260.0270.12076.77
7.4.250.0300.11576.73
7.4.240.0300.12476.70
7.4.230.0270.11476.86
7.4.220.0660.21976.51
7.4.210.0600.18476.70
7.4.200.0270.11776.84
7.4.160.0730.18476.70
7.4.150.0680.17576.64
7.4.140.0890.20976.68
7.4.130.1170.18776.79
7.4.120.0890.18876.67
7.4.110.0700.17376.77
7.4.100.0660.17676.68
7.4.90.0780.16976.74
7.4.80.0990.29076.64
7.4.70.0780.16776.80
7.4.60.0700.17976.64
7.4.50.0260.19576.77
7.4.40.0670.18076.60
7.4.30.0900.15176.77
7.3.330.0930.269132.27
7.3.320.0400.236132.18
7.3.310.0200.12676.34
7.3.300.0200.12376.36
7.3.290.0300.12776.49
7.3.280.0710.18276.49
7.3.270.0850.17376.65
7.3.260.0810.21576.82
7.3.250.0830.18876.46
7.3.240.0850.19576.59
7.3.230.1180.22276.45
7.3.210.0630.20976.57
7.3.200.0790.18576.44
7.3.190.0890.16576.78
7.3.180.0860.16276.79
7.3.170.0620.19476.49
7.3.160.0570.19576.55
7.2.330.0850.16876.76
7.2.320.0820.19176.85
7.2.310.0600.20676.72
7.2.300.0560.20076.93
7.2.290.0840.20776.71
7.2.92.3690.09350.86
7.2.82.3870.08654.77
7.1.212.3930.12662.34
7.1.202.4470.08346.20
7.0.312.3670.08653.96

preferences:
54.72 ms | 401 KiB | 5 Q