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"; if ($i > 50) { break; } } 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.0160.00018.30
8.3.50.0070.00716.63
8.3.40.0070.00718.71
8.3.30.0140.00018.52
8.3.20.0040.00420.16
8.3.10.0060.00323.61
8.3.00.0080.00022.10
8.2.180.0120.00318.31
8.2.170.0090.00622.96
8.2.160.0100.00320.81
8.2.150.0040.00424.18
8.2.140.0030.01624.66
8.2.130.0080.00021.00
8.2.120.0080.00026.35
8.2.110.0060.00321.07
8.2.100.0060.00619.66
8.2.90.0040.00419.20
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0040.00417.93
8.2.50.0080.00018.10
8.2.40.0000.00720.42
8.2.30.0000.00921.00
8.2.20.0080.00018.13
8.2.10.0000.00718.20
8.2.00.0000.00718.14
8.1.280.0090.00625.92
8.1.270.0040.00423.91
8.1.260.0100.00726.35
8.1.250.0040.00428.09
8.1.240.0070.00320.96
8.1.230.0110.00020.24
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0070.00018.88
8.1.160.0040.00418.94
8.1.150.0040.00420.68
8.1.140.0040.00419.51
8.1.130.0030.00618.82
8.1.120.0030.00517.45
8.1.110.0040.00417.42
8.1.100.0040.00417.37
8.1.90.0030.00317.36
8.1.80.0040.00417.46
8.1.70.0000.00717.50
8.1.60.0060.00317.57
8.1.50.0000.00817.53
8.1.40.0030.00617.42
8.1.30.0050.00317.64
8.1.20.0040.00417.57
8.1.10.0030.00617.50
8.1.00.0000.00717.38
8.0.300.0040.00419.93
8.0.290.0070.00016.75
8.0.280.0070.00018.45
8.0.270.0040.00417.18
8.0.260.0070.00016.75
8.0.250.0000.00716.99
8.0.240.0000.00916.94
8.0.230.0070.00017.00
8.0.220.0050.00216.95
8.0.210.0000.00716.87
8.0.200.0000.00616.93
8.0.190.0040.00416.87
8.0.180.0070.00016.77
8.0.170.0000.00716.89
8.0.160.0040.00416.89
8.0.150.0040.00416.91
8.0.140.0040.00416.80
8.0.130.0030.00313.29
8.0.120.0040.00416.87
8.0.110.0040.00416.82
8.0.100.0000.00816.90
8.0.90.0040.00416.88
8.0.80.0060.00916.90
8.0.70.0040.00416.79
8.0.60.0050.00316.92
8.0.50.0000.00816.86
8.0.30.0060.01217.04
8.0.20.0110.00817.40
8.0.10.0000.00716.90
8.0.00.0150.00916.60
7.4.330.0030.00315.55
7.4.320.0000.00716.62
7.4.300.0060.00016.54
7.4.290.0000.00716.61
7.4.280.0000.00816.61
7.4.270.0030.00316.44
7.4.260.0000.01116.64
7.4.250.0030.00316.38
7.4.240.0000.00716.61
7.4.230.0000.00716.72
7.4.220.0140.00416.63
7.4.210.0070.00916.52
7.4.200.0080.00016.42
7.4.160.0110.00716.38
7.4.150.0110.00817.40
7.4.140.0120.00617.86
7.4.130.0090.00916.75
7.4.120.0100.01116.52
7.4.110.0140.00316.60
7.4.100.0130.00716.45
7.4.90.0130.00316.54
7.4.80.0140.01019.39
7.4.70.0120.00916.47
7.4.60.0070.01016.43
7.4.50.0060.00616.12
7.4.40.0040.01716.37
7.4.30.0060.01016.55
7.4.00.0040.01114.72
7.3.330.0000.00613.17
7.3.320.0060.00013.25
7.3.310.0030.00316.32
7.3.300.0040.00416.36
7.3.290.0040.00416.25
7.3.280.0070.01016.33
7.3.270.0140.00317.40
7.3.260.0100.00916.43
7.3.250.0120.00616.25
7.3.240.0130.00616.39
7.3.230.0120.00416.23
7.3.210.0040.01216.32
7.3.200.0090.00616.25
7.3.190.0100.01016.61
7.3.180.0030.01316.38
7.3.170.0070.01016.43
7.3.160.0120.00416.34
7.3.10.0040.00816.73
7.3.00.0000.01116.86
7.2.330.0100.00816.76
7.2.320.0000.01616.64
7.2.310.0100.01416.51
7.2.300.0100.00616.55
7.2.290.0080.00816.59
7.2.130.0060.00616.90
7.2.120.0110.00716.86
7.2.110.0030.01016.94
7.2.100.0000.01716.71
7.2.90.0080.00616.54
7.2.80.0030.01015.75
7.2.70.0890.00316.92
7.2.60.0050.01016.86
7.2.50.0030.01316.95
7.2.40.0080.00417.01
7.2.30.0060.00816.97
7.2.20.0110.00816.66
7.2.10.0100.00916.89
7.2.00.0050.01016.86
7.1.250.0040.00715.77
7.1.210.0140.00315.75
7.1.200.2580.00615.72
7.1.190.0080.01015.80
7.1.180.0030.01615.80
7.1.170.0030.01015.64
7.1.160.1190.00915.86
7.1.150.0080.01215.78
7.1.140.2630.01015.64
7.1.130.0070.00715.96
7.1.120.0100.00315.71
7.1.110.0080.00415.96
7.1.100.0110.00415.80
7.1.90.0140.00015.88
7.1.80.0040.00815.74
7.1.70.0120.00315.70
7.1.60.0320.00333.76
7.1.50.0250.01633.41
7.1.40.0240.00733.78
7.1.30.0280.00333.68
7.1.20.2240.01031.93
7.1.10.0060.00615.90
7.1.00.0060.00915.89
7.0.310.0090.00813.53
7.0.300.0470.01415.28
7.0.290.0140.00013.80
7.0.280.0090.00615.34
7.0.270.0060.01315.43
7.0.260.0080.01215.47
7.0.250.0070.00715.65
7.0.240.0100.00715.50
7.0.230.0090.00615.41
7.0.220.0060.00815.41
7.0.210.0080.00815.39
7.0.200.0090.00315.42
7.0.190.0090.00715.43
7.0.180.0130.00015.63
7.0.170.2240.00315.36
7.0.160.2960.01015.38
7.0.150.0110.00615.41
7.0.140.0110.00515.30
7.0.130.0110.00715.52
7.0.120.0030.01415.49
7.0.110.0100.00715.33
7.0.100.0080.00815.43
7.0.90.0040.01115.54
7.0.80.0070.01015.38
7.0.70.2560.00615.36
7.0.60.0070.01015.41
7.0.50.0060.00915.55
7.0.40.0060.01015.32
7.0.30.0030.01115.45
7.0.20.0090.00615.27
7.0.10.0070.00715.39
7.0.00.0060.00615.21

preferences:
44.81 ms | 401 KiB | 5 Q