3v4l.org

run code in 300+ PHP versions simultaneously
<?php // user input of years $ar = [1944, 1674, 3021]; // find max year $maxCentury = max(...$ar); // get max century $roundedCentury = round($maxCentury, -3); foreach($ar as $year) { foreach(range(0, $roundedCentury, 1000) as $century) { if($century <= $year) { echo "<li> $century <ul>" . $year . "</ul> </li>"; } } }

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.00316.63
8.3.50.0100.01018.25
8.3.40.0080.00818.83
8.3.30.0110.00418.76
8.3.20.0120.00618.96
8.3.10.0030.00622.03
8.3.00.0000.00821.02
8.2.180.0030.01716.63
8.2.170.0110.00422.96
8.2.160.0170.00020.47
8.2.150.0080.00025.66
8.2.140.0140.00424.66
8.2.130.0080.00021.09
8.2.120.0050.00326.35
8.2.110.0100.00021.13
8.2.100.0100.00317.78
8.2.90.0000.00818.16
8.2.80.0040.00417.97
8.2.70.0080.00017.68
8.2.60.0000.00818.16
8.2.50.0080.00018.10
8.2.40.0040.00420.71
8.2.30.0070.00019.39
8.2.20.0070.00017.98
8.2.10.0070.00018.05
8.2.00.0000.00717.72
8.1.280.0150.00025.92
8.1.270.0040.00422.12
8.1.260.0000.00828.09
8.1.250.0070.00028.09
8.1.240.0080.00022.23
8.1.230.0000.01220.85
8.1.220.0030.00617.78
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0080.00017.38
8.1.180.0040.00418.10
8.1.170.0000.00818.86
8.1.160.0000.00718.82
8.1.150.0000.00720.31
8.1.140.0000.00719.70
8.1.130.0030.00317.61
8.1.120.0000.00717.38
8.1.110.0040.00417.54
8.1.100.0000.00717.46
8.1.90.0030.00317.46
8.1.80.0000.00717.49
8.1.70.0070.00017.38
8.1.60.0080.00017.63
8.1.50.0040.00417.57
8.1.40.0060.00317.41
8.1.30.0030.00617.70
8.1.20.0040.00417.70
8.1.10.0080.00017.53
8.1.00.0090.00017.43
8.0.300.0090.00019.42
8.0.290.0050.00316.88
8.0.280.0040.00418.48
8.0.270.0000.00717.32
8.0.260.0030.00317.25
8.0.250.0030.00716.92
8.0.240.0080.00016.99
8.0.230.0040.00416.91
8.0.220.0000.00716.93
8.0.210.0000.00816.95
8.0.200.0000.00716.99
8.0.190.0050.00317.01
8.0.180.0000.00716.83
8.0.170.0070.00016.93
8.0.160.0070.00016.89
8.0.150.0040.00416.89
8.0.140.0040.00416.91
8.0.130.0060.00013.34
8.0.120.0040.00416.85
8.0.110.0070.00016.93
8.0.100.0050.00217.04
8.0.90.0000.00917.00
8.0.80.0060.00916.97
8.0.70.0040.00416.94
8.0.60.0000.00716.90
8.0.50.0040.00416.78
8.0.30.0050.01417.12
8.0.20.0110.01017.40
8.0.10.0000.00917.03
8.0.00.0130.00617.11
7.4.330.0000.00615.55
7.4.320.0030.00316.54
7.4.300.0030.00316.59
7.4.290.0000.00716.70
7.4.280.0000.00816.64
7.4.270.0070.00016.67
7.4.260.0000.00716.52
7.4.250.0000.00716.45
7.4.240.0030.00316.58
7.4.230.0000.00716.66
7.4.220.0070.01016.52
7.4.210.0100.00916.72
7.4.200.0030.00316.54
7.4.160.0080.00816.53
7.4.150.0100.01017.40
7.4.140.0110.00917.86
7.4.130.0100.00816.60
7.4.120.0100.00716.64
7.4.110.0130.01016.44
7.4.100.0060.00916.53
7.4.90.0070.01116.41
7.4.80.0070.01319.39
7.4.70.0070.01116.60
7.4.60.0090.00816.30
7.4.50.0030.01016.46
7.4.40.0130.00416.36
7.4.30.0060.01116.36
7.4.00.0110.00314.81
7.3.330.0060.00313.20
7.3.320.0000.00513.21
7.3.310.0040.00416.20
7.3.300.0000.00616.26
7.3.290.0000.00816.36
7.3.280.0080.00916.39
7.3.270.0100.00717.40
7.3.260.0080.00816.47
7.3.250.0070.01016.44
7.3.240.0030.01516.45
7.3.230.0100.00716.55
7.3.210.0100.00616.63
7.3.200.0120.00616.50
7.3.190.0170.00016.22
7.3.180.0060.00916.55
7.3.170.0100.00616.59
7.3.160.0070.01516.21
7.2.330.0070.01016.49
7.2.320.0070.01016.71
7.2.310.0070.01016.48
7.2.300.0100.00716.60
7.2.290.0110.01116.68
7.2.60.0100.00716.95
7.2.50.0130.00016.99
7.2.00.0070.00719.22
7.1.200.0040.00715.89
7.1.70.0000.01217.18
7.1.60.0000.01017.23
7.1.00.0000.08022.28
7.0.200.0300.00314.94
7.0.130.0100.05322.04
7.0.120.0100.05722.13
7.0.110.0030.06022.15
7.0.100.0000.06022.13
7.0.90.0030.06722.13
7.0.80.0100.05322.13
7.0.70.0100.05021.96
7.0.60.0070.05322.00
7.0.50.0070.05322.06
7.0.40.0100.05021.98
7.0.30.0070.07322.07
7.0.20.0030.05722.06
7.0.10.0130.04722.05
7.0.00.0070.06322.14
5.6.280.0170.05021.06
5.6.270.0030.05721.07
5.6.260.0070.05320.98
5.6.250.0070.05320.86
5.6.240.0100.05020.99
5.6.230.0100.07721.06
5.6.220.0130.06320.84
5.6.210.0070.05320.88
5.6.200.0170.04721.08
5.6.190.0170.04720.84
5.6.180.0030.05720.96
5.6.170.0030.05720.92
5.6.160.0200.04020.82
5.6.150.0070.05721.05
5.6.140.0070.05720.78
5.6.130.0000.06020.99
5.6.120.0070.06020.94
5.6.110.0070.06020.81
5.6.100.0070.05721.01
5.6.90.0130.06020.80
5.6.80.0030.08020.46
5.6.70.0100.05720.11
5.6.60.0100.06020.37
5.6.50.0070.06720.30
5.6.40.0100.05720.20
5.6.30.0070.05720.39
5.6.20.0000.06020.14
5.6.10.0000.05720.38
5.6.00.0070.05020.28

preferences:
53.33 ms | 400 KiB | 5 Q