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; array_push($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.0700.14873.89
8.3.50.0670.16873.54
8.3.40.0340.07146.98
8.3.30.0360.07047.15
8.3.20.0230.04048.87
8.3.10.0340.02450.53
8.3.00.0070.04649.07
8.2.180.0800.13673.55
8.2.170.0560.05647.02
8.2.160.0400.07347.51
8.2.150.0100.04747.56
8.2.140.0330.02348.69
8.2.130.0270.03048.01
8.2.120.0130.03749.18
8.2.110.0200.05749.22
8.2.100.0240.06146.60
8.2.90.0070.07147.60
8.2.80.0130.06046.23
8.2.70.0230.05645.99
8.2.60.0170.06746.23
8.2.50.0130.06246.13
8.2.40.0070.06748.88
8.2.30.0130.06047.99
8.2.20.0100.06846.50
8.2.10.0170.06146.54
8.2.00.0100.06646.50
8.1.280.1080.14176.30
8.1.270.0070.04750.58
8.1.260.0200.05050.93
8.1.250.0240.03148.69
8.1.240.0000.05951.99
8.1.230.0270.05347.56
8.1.220.0130.05746.30
8.1.210.0100.05945.84
8.1.200.0160.05845.76
8.1.190.0090.06345.54
8.1.180.0070.06645.91
8.1.170.0240.04847.46
8.1.160.0230.04247.44
8.1.150.0170.05647.26
8.1.140.0290.04947.96
8.1.130.0190.05147.23
8.1.120.0140.05745.76
8.1.110.0140.05545.81
8.1.100.0230.04645.78
8.1.90.0170.05345.74
8.1.80.0170.05445.91
8.1.70.0170.05545.85
8.1.60.0130.06445.98
8.1.50.0140.06245.97
8.1.40.0130.06545.81
8.1.30.0200.05746.03
8.1.20.0230.05345.88
8.1.10.0390.11877.90
8.1.00.0370.11477.77
8.0.300.0400.09780.00
8.0.290.0340.11577.02
8.0.280.0300.12078.53
8.0.270.0260.12777.47
8.0.260.0400.10376.90
8.0.250.0270.11577.00
8.0.240.0530.13377.07
8.0.230.0330.11677.09
8.0.220.0330.11077.10
8.0.210.0370.10777.04
8.0.200.0230.12077.17
8.0.190.0430.11677.17
8.0.180.0230.14177.00
8.0.170.0400.11477.22
8.0.160.0330.12777.00
8.0.150.0230.12777.00
8.0.140.0270.13177.07
8.0.130.0660.229132.43
8.0.120.0200.13477.08
8.0.110.0300.12076.94
8.0.100.0100.14277.00
8.0.90.0270.12377.05
8.0.80.0700.18777.07
8.0.70.0370.11677.15
8.0.60.0200.13076.95
8.0.50.0170.12976.94
8.0.30.0700.13777.32
8.0.20.1030.21877.15
8.0.10.0400.12077.11
8.0.00.0730.20576.97
7.4.330.0430.11973.39
7.4.320.0270.11876.67
7.4.300.0240.11876.66
7.4.290.0230.13376.55
7.4.280.0430.12276.59
7.4.270.0270.12176.72
7.4.260.0270.12376.61
7.4.250.0270.12276.66
7.4.240.0390.11276.63
7.4.230.0270.12476.46
7.4.220.0770.22976.62
7.4.210.0620.20876.67
7.4.200.0430.11076.75
7.4.160.0670.20576.60
7.4.150.0930.18376.61
7.4.140.0940.20576.57
7.4.130.0820.23176.80
7.4.120.0780.21176.65
7.4.110.0780.18476.55
7.4.100.0740.18476.84
7.4.90.0690.20276.82
7.4.80.0730.20076.83
7.4.70.0790.19276.67
7.4.60.0700.18776.62
7.4.50.0270.20276.63
7.4.40.0910.23576.60
7.4.30.0560.20976.74
7.3.330.0930.258132.23
7.3.320.0830.220132.14
7.3.310.0300.12376.25
7.3.300.0230.13376.45
7.3.290.0500.12276.41
7.3.280.0890.22676.43
7.3.270.0760.19576.25
7.3.260.0890.23376.57
7.3.250.0880.18776.44
7.3.240.0860.18976.47
7.3.230.0720.21976.32
7.3.210.0830.21076.57
7.3.200.0750.23876.55
7.3.190.1060.15376.42
7.3.180.0660.19576.39
7.3.170.0720.18476.51
7.3.160.0850.17776.68
7.2.330.0810.20576.50
7.2.320.0760.24176.66
7.2.310.0570.22476.83
7.2.300.0460.22476.78
7.2.290.0900.21776.95
7.2.91.5180.07038.89
7.2.82.2230.17869.61
7.1.212.0850.18265.00
7.1.201.9070.15752.27
7.0.312.3680.07034.27

preferences:
109.75 ms | 401 KiB | 5 Q