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.60.0640.16473.96
8.3.50.0720.14473.59
8.3.40.0570.06447.15
8.3.30.0270.07647.03
8.3.20.0140.04448.67
8.3.10.0100.04250.69
8.3.00.0100.05448.96
8.2.180.0600.15473.86
8.2.170.0300.07347.35
8.2.160.0470.06647.43
8.2.150.0230.03347.66
8.2.140.0200.03349.05
8.2.130.0140.03747.90
8.2.120.0190.06149.23
8.2.110.0200.05049.05
8.2.100.0170.06246.61
8.2.90.0140.05847.61
8.2.80.0170.05446.29
8.2.70.0170.05646.01
8.2.60.0070.07146.49
8.2.50.0160.05846.32
8.2.40.0140.05449.05
8.2.30.0100.05648.03
8.2.20.0100.06046.58
8.2.10.0200.05246.49
8.2.00.0100.06146.66
8.1.280.0830.13376.80
8.1.270.0300.05050.72
8.1.260.0200.05350.93
8.1.250.0260.05248.87
8.1.240.0140.07248.01
8.1.230.0270.05047.69
8.1.220.0070.05846.32
8.1.210.0140.05145.69
8.1.200.0030.06245.87
8.1.190.0170.05045.75
8.1.180.0240.04146.07
8.1.170.0070.05647.43
8.1.160.0130.04747.32
8.1.150.0130.05347.66
8.1.140.0230.04348.02
8.1.130.0000.06647.29
8.1.120.0100.05245.77
8.1.110.0070.05945.85
8.1.100.0100.05645.86
8.1.90.0100.05745.91
8.1.80.0130.05345.88
8.1.70.0170.05045.78
8.1.60.0160.05646.00
8.1.50.0130.05745.89
8.1.40.0170.05345.79
8.1.30.0130.05945.98
8.1.20.0140.05846.00
8.1.10.0230.12377.74
8.1.00.0400.10277.84
8.0.300.0200.10080.23
8.0.290.0230.11277.12
8.0.280.0330.10478.65
8.0.270.0260.10977.38
8.0.260.0270.10376.98
8.0.250.0400.09477.11
8.0.240.0500.12077.16
8.0.230.0230.11677.09
8.0.220.0300.09777.02
8.0.210.0200.11277.15
8.0.200.0170.11677.09
8.0.190.0360.10677.06
8.0.180.0430.13977.16
8.0.170.0370.10677.01
8.0.160.0240.11977.01
8.0.150.0300.11276.98
8.0.140.0390.10577.00
8.0.130.0430.223132.45
8.0.120.0360.11277.01
8.0.110.0260.11576.91
8.0.100.0300.11377.04
8.0.90.0170.13577.07
8.0.80.0560.26177.00
8.0.70.0200.12777.06
8.0.60.0400.10777.06
8.0.50.0240.11877.07
8.0.30.0640.14277.23
8.0.20.0890.20377.25
8.0.10.0230.12077.04
8.0.00.0800.17477.04
7.4.330.0280.11474.86
7.4.320.0270.10576.67
7.4.300.0230.10976.75
7.4.290.0240.12576.75
7.4.280.0450.10476.74
7.4.270.0370.10576.75
7.4.260.0270.11876.73
7.4.250.0170.12876.71
7.4.240.0460.10176.65
7.4.230.0270.11376.59
7.4.220.0730.19976.50
7.4.210.0670.16976.67
7.4.200.0200.12376.85
7.4.160.0620.17676.73
7.4.150.0890.17676.64
7.4.140.0940.19376.67
7.4.130.0720.23476.77
7.4.120.0870.20576.65
7.4.110.0900.15476.88
7.4.100.0670.27176.57
7.4.90.0720.21176.53
7.4.80.0830.17076.72
7.4.70.0590.18876.60
7.4.60.0890.18976.68
7.4.50.0400.17876.80
7.4.40.0590.19876.55
7.4.30.0900.15176.72
7.3.330.0880.278132.24
7.3.320.0440.231132.28
7.3.310.0270.11776.59
7.3.300.0400.10276.49
7.3.290.0200.14076.50
7.3.280.0720.18876.49
7.3.270.0630.18776.36
7.3.260.0980.20776.71
7.3.250.0840.21576.61
7.3.240.0780.19976.47
7.3.230.0790.17876.78
7.3.210.0720.18476.33
7.3.200.0860.18776.70
7.3.190.0820.22176.82
7.3.180.0540.20176.79
7.3.170.0920.15876.58
7.3.160.0790.19476.59
7.2.330.0970.17476.95
7.2.320.0970.18776.89
7.2.310.0820.17877.08
7.2.300.0560.19976.71
7.2.290.1010.18076.83
7.2.92.1980.12559.55
7.2.82.3870.08351.56
7.1.211.9090.11854.21
7.1.202.4300.07942.74
7.0.312.2440.09048.29

preferences:
46.56 ms | 401 KiB | 5 Q