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 > 150) { 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.0000.01518.43
8.3.50.0070.00716.37
8.3.40.0090.00618.89
8.3.30.0120.00318.52
8.3.20.0040.00420.34
8.3.10.0140.00423.48
8.3.00.0080.00022.08
8.2.180.0070.00716.32
8.2.170.0150.00022.96
8.2.160.0070.00719.11
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0070.00021.12
8.2.120.0070.01026.35
8.2.110.0030.00622.11
8.2.100.0090.00319.49
8.2.90.0080.00019.20
8.2.80.0040.00418.04
8.2.70.0040.00417.75
8.2.60.0000.00818.04
8.2.50.0080.00018.10
8.2.40.0000.00820.55
8.2.30.0000.00820.97
8.2.20.0000.00718.00
8.2.10.0040.00418.25
8.2.00.0040.00418.15
8.1.280.0060.00925.92
8.1.270.0050.00323.92
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0070.00321.05
8.1.230.0000.01119.09
8.1.220.0040.00417.77
8.1.210.0000.00818.77
8.1.200.0030.00617.36
8.1.190.0040.00417.35
8.1.180.0000.00918.10
8.1.170.0080.00019.01
8.1.160.0070.00019.00
8.1.150.0040.00420.67
8.1.140.0070.00019.59
8.1.130.0070.00018.92
8.1.120.0040.00417.46
8.1.110.0000.00817.43
8.1.100.0000.00717.52
8.1.90.0000.00717.45
8.1.80.0000.00917.37
8.1.70.0070.00017.39
8.1.60.0020.00517.64
8.1.50.0000.00917.60
8.1.40.0060.00317.55
8.1.30.0000.00817.62
8.1.20.0030.00617.71
8.1.10.0000.00917.50
8.1.00.0000.00817.38
8.0.300.0000.00719.98
8.0.290.0000.01016.63
8.0.280.0030.00318.47
8.0.270.0000.00717.33
8.0.260.0000.00616.84
8.0.250.0000.00816.99
8.0.240.0000.01017.03
8.0.230.0000.00716.89
8.0.220.0000.00716.89
8.0.210.0050.00216.84
8.0.200.0000.00617.02
8.0.190.0060.00317.01
8.0.180.0040.00416.93
8.0.170.0000.00716.95
8.0.160.0030.00517.00
8.0.150.0030.00416.83
8.0.140.0040.00416.93
8.0.130.0040.00413.28
8.0.120.0050.00316.86
8.0.110.0070.00016.92
8.0.100.0000.00816.96
8.0.90.0050.00216.79
8.0.80.0060.01616.85
8.0.70.0050.00316.98
8.0.60.0030.00516.82
8.0.50.0000.00717.03
8.0.30.0060.01117.20
8.0.20.0080.01217.40
8.0.10.0000.00717.01
8.0.00.0100.00716.63
7.4.330.0000.00515.55
7.4.320.0000.00716.61
7.4.300.0000.00616.53
7.4.290.0070.00016.58
7.4.280.0030.00516.53
7.4.270.0000.00716.63
7.4.260.0030.00316.57
7.4.250.0040.00416.57
7.4.240.0070.00016.49
7.4.230.0000.00716.66
7.4.220.0070.01716.38
7.4.210.0080.01016.70
7.4.200.0070.00016.44
7.4.160.0090.00916.50
7.4.150.0100.00717.40
7.4.140.0100.01017.86
7.4.130.0130.00616.50
7.4.120.0080.01016.62
7.4.110.0060.01016.69
7.4.100.0030.01416.54
7.4.90.0110.00516.51
7.4.80.0070.01119.39
7.4.70.0100.00716.50
7.4.60.0070.01016.47
7.4.50.0040.01216.62
7.4.40.0090.00616.59
7.4.30.0030.01616.27
7.4.00.0060.00314.96
7.3.330.0070.00013.10
7.3.320.0030.00313.08
7.3.310.0070.00016.32
7.3.300.0030.00316.32
7.3.290.0030.00316.30
7.3.280.0070.01016.37
7.3.270.0060.01217.40
7.3.260.0080.01116.63
7.3.250.0110.00816.36
7.3.240.0060.01216.59
7.3.230.0120.00916.36
7.3.210.0060.01016.63
7.3.200.0090.00916.31
7.3.190.0100.00616.32
7.3.180.0120.00416.38
7.3.170.0060.01216.23
7.3.160.0070.01016.25
7.2.330.0110.00616.75
7.2.320.0130.00416.73
7.2.310.0060.01616.52
7.2.300.0120.00316.45
7.2.290.0140.00316.64
7.2.90.0110.00816.60
7.2.80.0090.00616.54
7.2.70.0070.01016.74
7.2.60.0030.01416.91
7.2.50.1490.01716.80
7.2.40.0030.01017.09
7.2.30.0140.00516.82
7.2.20.0100.00717.06
7.2.10.0030.01416.90
7.2.00.0070.01016.80
7.1.210.2520.00315.89
7.1.200.0060.01015.91
7.1.190.0070.00715.86
7.1.180.0120.00315.92
7.1.170.0030.01215.63
7.1.160.0060.00615.71
7.1.150.1650.01015.92
7.1.140.0060.00815.63
7.1.130.0130.00315.69
7.1.120.2100.00715.78
7.1.110.0110.00015.89
7.1.100.0090.00615.94
7.1.90.0030.01215.72
7.1.80.0080.00815.77
7.1.70.0030.01015.79
7.1.60.0230.01333.73
7.1.50.0550.00731.91
7.1.40.0870.00733.88
7.1.30.0310.01033.79
7.1.20.0300.01033.77
7.1.10.0090.00915.82
7.1.00.0080.00415.66
7.0.310.0070.00715.28
7.0.300.0160.00015.38
7.0.290.0070.01015.43
7.0.280.0130.00515.34
7.0.270.0100.00715.22
7.0.260.0090.00415.47
7.0.250.0030.01015.45
7.0.240.0130.00515.59
7.0.230.0100.01015.32
7.0.220.0030.01315.45
7.0.210.0100.00715.63
7.0.200.0000.01615.14
7.0.190.0130.00715.43
7.0.180.0040.00815.34
7.0.170.0140.00713.32
7.0.160.0110.00913.25
7.0.150.0130.00315.19
7.0.140.0030.01015.31
7.0.130.0130.00015.51
7.0.120.0090.00515.53
7.0.110.0070.00715.46
7.0.100.0060.00615.49
7.0.90.0130.00515.16
7.0.80.2640.00615.41
7.0.70.0130.00015.59
7.0.60.0070.00715.35
7.0.50.0060.00915.27
7.0.40.0040.00815.48
7.0.30.0130.00315.22
7.0.20.0130.00315.36
7.0.10.0090.00515.42
7.0.00.0070.00715.31

preferences:
45.33 ms | 401 KiB | 5 Q