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 <= $num_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.0080.00818.43
8.3.50.0120.00316.51
8.3.40.0080.00818.80
8.3.30.0090.00618.50
8.3.20.0040.00420.24
8.3.10.0040.00423.65
8.3.00.0080.00022.09
8.2.180.0120.00316.63
8.2.170.0070.00722.96
8.2.160.0180.00319.05
8.2.150.0040.00724.18
8.2.140.0050.00324.66
8.2.130.0040.00421.14
8.2.120.0040.00426.35
8.2.110.0060.00322.27
8.2.100.0040.00717.91
8.2.90.0050.00319.20
8.2.80.0080.00017.97
8.2.70.0040.00417.63
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0040.00420.47
8.2.30.0080.00020.97
8.2.20.0040.00418.13
8.2.10.0040.00418.16
8.2.00.0070.00018.11
8.1.280.0070.01025.92
8.1.270.0040.00422.20
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.79
8.1.230.0030.00717.54
8.1.220.0040.00417.78
8.1.210.0030.00518.77
8.1.200.0030.00617.11
8.1.190.0060.00317.10
8.1.180.0000.00718.10
8.1.170.0000.00718.97
8.1.160.0080.00019.06
8.1.150.0000.00720.55
8.1.140.0000.00719.52
8.1.130.0030.00318.73
8.1.120.0030.00617.45
8.1.110.0050.00317.27
8.1.100.0070.00017.30
8.1.90.0000.00717.42
8.1.80.0040.00417.41
8.1.70.0000.00717.44
8.1.60.0040.00417.56
8.1.50.0050.00317.49
8.1.40.0040.00417.46
8.1.30.0000.00817.59
8.1.20.0000.00717.61
8.1.10.0000.00917.50
8.1.00.0000.00817.45
8.0.300.0000.00818.77
8.0.290.0060.00316.75
8.0.280.0030.00318.38
8.0.270.0000.00717.25
8.0.260.0000.00716.88
8.0.250.0000.00717.01
8.0.240.0060.00316.87
8.0.230.0030.00316.85
8.0.220.0070.00016.79
8.0.210.0070.00016.74
8.0.200.0000.00816.97
8.0.190.0050.00316.85
8.0.180.0040.00416.84
8.0.170.0000.00716.93
8.0.160.0070.00016.88
8.0.150.0050.00216.84
8.0.140.0070.00016.86
8.0.130.0000.00713.29
8.0.120.0070.00016.89
8.0.110.0000.00717.01
8.0.100.0050.00316.88
8.0.90.0000.00817.02
8.0.80.0110.01116.83
8.0.70.0040.00416.73
8.0.60.0070.00016.87
8.0.50.0040.00416.96
8.0.30.0130.00616.97
8.0.20.0100.00917.40
8.0.10.0000.00716.92
8.0.00.0100.00716.75
7.4.330.0050.00015.55
7.4.320.0060.00016.36
7.4.300.0030.00316.53
7.4.290.0000.00716.61
7.4.280.0000.00916.52
7.4.270.0030.00316.54
7.4.260.0000.00716.56
7.4.250.0030.00316.50
7.4.240.0030.00316.54
7.4.230.0000.00716.48
7.4.220.0120.00916.64
7.4.210.0080.00816.46
7.4.200.0030.00316.57
7.4.160.0070.00916.28
7.4.150.0130.00617.40
7.4.140.0110.00717.86
7.4.130.0100.01416.69
7.4.120.0080.01116.44
7.4.110.0060.01216.46
7.4.100.0060.01116.41
7.4.90.0100.01016.59
7.4.80.0060.01219.39
7.4.70.0090.00616.55
7.4.60.0090.01016.38
7.4.50.0110.00316.36
7.4.40.0120.01716.46
7.4.30.0090.00916.37
7.4.00.0050.00815.01
7.3.330.0060.00013.16
7.3.320.0000.00613.07
7.3.310.0020.00516.44
7.3.300.0070.00016.33
7.3.290.0030.00316.33
7.3.280.0070.00916.32
7.3.270.0100.00717.40
7.3.260.0120.00816.41
7.3.250.0110.00716.37
7.3.240.0100.00716.29
7.3.230.0070.01716.28
7.3.210.0070.01016.57
7.3.200.0060.01516.57
7.3.190.0150.00316.18
7.3.180.0040.01216.50
7.3.170.0080.00816.38
7.3.160.0140.00316.28
7.3.120.0030.01714.77
7.3.110.0140.00414.93
7.3.100.0060.00914.91
7.3.90.0030.00614.84
7.3.80.0070.00715.18
7.3.70.0030.01014.85
7.3.60.0060.00614.95
7.3.50.0100.00314.80
7.3.40.0000.01514.86
7.3.30.0070.00714.73
7.3.20.0030.01416.71
7.3.10.0000.01516.59
7.3.00.0030.00616.86
7.2.330.0140.00716.67
7.2.320.0190.00316.63
7.2.310.0040.01416.64
7.2.300.0090.00616.61
7.2.290.0110.00716.58
7.2.250.0000.01815.09
7.2.240.0100.00714.63
7.2.230.0070.00715.33
7.2.220.0030.01315.21
7.2.210.0000.01314.76
7.2.200.0040.01115.05
7.2.190.0110.00314.67
7.2.180.0040.01215.07
7.2.170.0090.00615.06
7.2.90.0130.00714.78
7.2.80.1130.01014.55
7.2.70.0240.00314.72
7.2.60.1030.00314.70
7.2.50.0060.00914.84
7.2.40.0460.01314.74
7.2.30.1340.00314.87
7.2.20.1200.00014.92
7.2.10.1190.01014.66
7.2.00.0150.00315.12
7.1.330.0070.00715.78
7.1.320.0090.00615.74
7.1.310.0040.00815.72
7.1.300.0080.00615.63
7.1.290.0000.01315.44
7.1.280.0080.00015.66
7.1.270.0040.01115.65
7.1.260.0090.00315.48
7.1.210.0530.00913.71
7.1.200.1330.00713.89
7.1.190.0030.01213.79
7.1.180.1370.00913.81
7.1.170.1350.00313.79
7.1.160.1440.01013.85
7.1.150.1710.00913.82
7.1.140.1220.00313.61
7.1.130.1220.00313.78
7.1.120.0600.00713.78
7.1.110.0160.00513.81
7.1.100.0350.00813.89
7.1.90.0240.00713.75
7.1.80.0110.00713.90
7.1.70.0110.00413.55
7.1.60.1340.00631.86
7.1.50.0350.00331.65
7.1.40.0360.00331.66
7.1.30.0370.00731.48
7.1.20.0310.00431.88
7.1.10.0120.00013.56
7.1.00.1770.01013.90
7.0.310.0170.01013.46
7.0.300.1080.00713.14
7.0.290.0130.00913.25
7.0.280.1180.00713.10
7.0.270.1060.01013.48
7.0.260.0940.00913.45
7.0.250.0560.00413.56
7.0.240.0070.00713.36
7.0.230.0050.01113.63
7.0.220.0160.00413.53
7.0.210.1330.00313.39
7.0.200.1090.01013.60
7.0.190.0180.00513.68
7.0.180.0070.00713.54
7.0.170.0160.00013.36
7.0.160.0080.00413.47
7.0.150.1770.00313.06
7.0.140.1080.00313.61
7.0.130.2040.00713.43
7.0.120.1600.00313.61
7.0.110.0150.00613.59
7.0.100.0040.01513.47
7.0.90.0120.00613.30
7.0.80.0160.00313.53
7.0.70.0860.01313.59
7.0.60.1980.00913.45
7.0.50.1350.01313.77
7.0.40.0130.00313.40
7.0.30.1180.00313.65
7.0.20.1050.01013.68
7.0.10.1060.00313.52
7.0.00.0070.01513.36

preferences:
45.43 ms | 400 KiB | 5 Q