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[count($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.0600.14373.95
8.3.50.0670.13773.55
8.3.40.0430.06047.29
8.3.30.0360.06647.32
8.3.20.0170.04348.98
8.3.10.0230.03050.55
8.3.00.0130.03949.13
8.2.180.0600.14074.26
8.2.170.0360.07547.48
8.2.160.0300.07547.64
8.2.150.0300.05047.49
8.2.140.0100.04249.10
8.2.130.0170.03348.04
8.2.120.0070.04448.93
8.2.110.0200.04749.27
8.2.100.0170.06546.48
8.2.90.0310.04447.61
8.2.80.0130.06046.44
8.2.70.0070.06945.81
8.2.60.0030.07346.31
8.2.50.0130.06046.44
8.2.40.0170.05349.03
8.2.30.0070.06048.15
8.2.20.0070.07146.53
8.2.10.0190.05246.57
8.2.00.0160.05646.56
8.1.280.0800.14676.62
8.1.270.0170.03651.03
8.1.260.0230.04750.88
8.1.250.0190.03649.07
8.1.240.0030.05448.19
8.1.230.0340.04447.54
8.1.220.0140.05246.20
8.1.210.0100.05645.79
8.1.200.0200.04845.88
8.1.190.0260.04245.78
8.1.180.0240.04245.98
8.1.170.0140.05147.49
8.1.160.0100.05247.46
8.1.150.0140.05547.65
8.1.140.0230.04447.98
8.1.130.0170.05147.39
8.1.120.0160.04845.90
8.1.110.0130.05545.89
8.1.100.0130.05445.75
8.1.90.0070.06145.75
8.1.80.0130.05645.73
8.1.70.0100.05845.76
8.1.60.0070.06845.97
8.1.50.0100.06345.91
8.1.40.0030.06745.80
8.1.30.0290.04545.95
8.1.20.0100.06246.08
8.1.10.0310.11577.79
8.1.00.0200.12377.93
8.0.300.0300.09880.52
8.0.290.0260.11676.79
8.0.280.0230.12478.74
8.0.270.0170.13077.02
8.0.260.0270.11077.13
8.0.250.0200.11977.08
8.0.240.0370.13377.18
8.0.230.0130.12677.18
8.0.220.0170.12077.10
8.0.210.0230.11677.03
8.0.200.0200.11976.98
8.0.190.0270.12377.00
8.0.180.0600.12677.15
8.0.170.0400.10677.10
8.0.160.0270.11877.10
8.0.150.0530.10676.96
8.0.140.0400.10976.98
8.0.130.0800.254132.47
8.0.120.0330.11777.05
8.0.110.0200.12777.00
8.0.100.0230.12677.11
8.0.90.0370.10977.06
8.0.80.0590.18177.03
8.0.70.0240.12877.11
8.0.60.0320.16277.04
8.0.50.0200.12277.08
8.0.30.0680.14777.20
8.0.20.0890.18177.29
8.0.10.0300.11777.23
8.0.00.0760.19077.02
7.4.330.0230.12473.98
7.4.320.0330.10976.77
7.4.300.0230.11276.67
7.4.290.0200.12876.67
7.4.280.0200.13076.73
7.4.270.0170.13576.67
7.4.260.0500.10276.73
7.4.250.0230.12676.57
7.4.240.0200.12576.76
7.4.230.0130.13076.76
7.4.220.0990.21176.78
7.4.210.0720.19776.74
7.4.200.0330.11676.86
7.4.160.0600.18376.71
7.4.150.0970.18576.88
7.4.140.0770.19176.70
7.4.130.0890.26176.79
7.4.120.0800.18976.70
7.4.110.0920.16176.75
7.4.100.0750.17676.66
7.4.90.0870.16776.75
7.4.80.0560.21776.63
7.4.70.0840.16876.56
7.4.60.0600.19876.81
7.4.50.0370.18576.80
7.4.40.0660.18976.73
7.4.30.1040.14576.57
7.4.00.0370.19075.21
7.3.330.0930.296132.30
7.3.320.0430.240132.11
7.3.310.0260.12676.56
7.3.300.0360.10976.38
7.3.290.0300.11976.40
7.3.280.0700.20176.43
7.3.270.0630.19776.33
7.3.260.0880.18976.53
7.3.250.0860.19776.62
7.3.240.0850.23376.51
7.3.230.1140.23876.66
7.3.210.0730.18976.69
7.3.200.0870.24976.63
7.3.190.0900.23676.68
7.3.180.0630.20276.47
7.3.170.0650.23576.47
7.3.160.0780.18976.45
7.2.330.0780.19377.00
7.2.320.1020.18776.73
7.2.310.0700.20976.70
7.2.300.0860.18176.69
7.2.290.1060.30776.78
7.2.60.2600.09676.71
7.2.00.0620.12079.44
7.1.200.1240.12075.66
7.1.100.0100.15978.15
7.1.70.9700.27175.83
7.1.60.9770.28993.70
7.1.50.0950.23694.95
7.1.40.0590.33394.76
7.1.30.0420.28394.64
7.1.20.0420.25794.68
7.1.10.0240.27776.70
7.1.00.0160.27576.41
7.0.200.6690.24676.71
7.0.190.0300.22976.51
7.0.180.0380.22676.38
7.0.170.0240.28476.08
7.0.160.0390.27576.25
7.0.150.0250.32876.24
7.0.140.0220.27476.29
7.0.130.0320.22876.60
7.0.120.0230.30376.60
7.0.110.0320.24976.12
7.0.100.0200.29576.23
7.0.90.0340.24776.30
7.0.80.0390.34976.61
7.0.70.0390.30176.57
7.0.60.0230.25876.16
7.0.50.0350.30876.27
7.0.40.0410.26676.72
7.0.30.0390.28176.34
7.0.20.0400.28876.19
7.0.10.0380.24176.44
7.0.00.0170.32176.57

preferences:
46.57 ms | 401 KiB | 5 Q