3v4l.org

run code in 300+ PHP versions simultaneously
<?php function abominable_is_leap_year($year) { if ($year % 4 == 0) goto verify; goto no; verify: if ($year % 100 != 0) goto yes; if ($year % 400 == 0) goto yes; no: return false; yes: return true; } foreach (range(0, 2020) as $year) printf("%d: %s\n", $year, abominable_is_leap_year($year) ? "yes" : "no"); ?>

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.70.0160.01018.30
8.3.60.0150.00318.30
8.3.50.0140.00516.47
8.3.40.0170.00318.71
8.3.30.0110.00818.59
8.3.20.0090.00021.91
8.3.10.0000.01021.65
8.3.00.0080.00319.68
8.2.190.0200.00716.58
8.2.180.0040.01418.49
8.2.170.0130.01022.96
8.2.160.0180.00320.21
8.2.150.0090.00024.18
8.2.140.0030.00724.66
8.2.130.0090.00020.47
8.2.120.0000.00926.35
8.2.110.0110.00021.95
8.2.100.0100.00317.78
8.2.90.0030.00717.91
8.2.80.0040.00418.19
8.2.70.0060.00318.04
8.2.60.0000.01119.22
8.2.50.0070.00318.16
8.2.40.0030.00620.59
8.2.30.0060.00320.89
8.2.20.0030.00618.11
8.2.10.0030.00618.05
8.2.00.0030.00718.04
8.1.280.0110.01125.92
8.1.270.0060.00323.99
8.1.260.0090.00026.35
8.1.250.0060.00328.09
8.1.240.0090.00322.46
8.1.230.0100.00321.16
8.1.220.0000.01017.74
8.1.210.0040.00718.83
8.1.200.0000.00917.25
8.1.190.0000.01017.36
8.1.180.0030.00618.10
8.1.170.0000.00918.77
8.1.160.0030.00618.82
8.1.150.0000.00820.34
8.1.140.0060.00317.78
8.1.130.0050.00319.04
8.1.120.0060.00617.41
8.1.110.0090.00017.51
8.1.100.0030.00917.36
8.1.90.0060.00317.45
8.1.80.0000.00917.46
8.1.70.0040.00717.49
8.1.60.0070.00317.52
8.1.50.0060.00317.59
8.1.40.0030.00617.55
8.1.30.0100.00017.65
8.1.20.0030.00617.58
8.1.10.0030.00617.57
8.1.00.0060.00317.36
8.0.300.0030.00621.98
8.0.290.0000.00916.88
8.0.280.0030.00518.40
8.0.270.0000.00917.38
8.0.260.0090.00016.90
8.0.250.0030.00517.06
8.0.240.0000.00816.98
8.0.230.0040.00416.98
8.0.220.0090.00016.85
8.0.210.0040.00416.96
8.0.200.0050.00516.82
8.0.190.0060.00317.08
8.0.180.0060.00316.93
8.0.170.0040.00717.04
8.0.160.0030.00616.91
8.0.150.0040.00417.02
8.0.140.0060.00316.76
8.0.130.0030.00313.48
8.0.120.0030.00617.01
8.0.110.0030.00616.95
8.0.100.0090.00016.97
8.0.90.0040.00416.86
8.0.80.0130.01016.86
8.0.70.0080.00017.02
8.0.60.0060.00316.79
8.0.50.0000.00816.98
8.0.30.0110.01217.20
8.0.20.0200.01417.40
8.0.10.0080.00017.04
8.0.00.0160.01016.79
7.4.330.0000.00615.55
7.4.320.0040.00416.59
7.4.300.0040.00416.43
7.4.290.0040.00416.60
7.4.280.0050.00516.60
7.4.270.0000.01016.52
7.4.260.0060.00316.50
7.4.250.0060.00316.60
7.4.240.0040.00416.67
7.4.230.0080.00016.46
7.4.220.0060.00316.59
7.4.210.0100.01316.48
7.4.200.0000.00816.51
7.4.160.0150.01116.50
7.4.150.0120.01317.40
7.4.140.0160.01017.86
7.4.130.0080.02316.70
7.4.120.0120.01716.67
7.4.110.0240.00616.59
7.4.100.0170.00716.76
7.4.90.0160.01216.58
7.4.80.0180.01019.39
7.4.70.0200.01016.49
7.4.60.0170.01016.67
7.4.50.0090.00916.63
7.4.40.0040.01916.76
7.4.00.0070.01015.13
7.3.330.0000.00713.34
7.3.320.0060.00313.38
7.3.310.0060.00316.42
7.3.300.0040.00416.32
7.3.290.0120.01216.35
7.3.280.0050.01916.40
7.3.270.0100.01617.40
7.3.260.0190.00816.46
7.3.240.0140.01316.59
7.3.230.0060.02016.46
7.3.210.0210.01016.73
7.3.200.0140.00916.35
7.3.190.0070.02016.51
7.3.180.0130.00916.49
7.3.170.0120.01816.52
7.3.160.0090.01416.62
7.3.10.0080.00816.60
7.3.00.0040.01116.39
7.2.330.0080.02016.69
7.2.320.0130.01316.82
7.2.310.0060.01816.75
7.2.300.0110.01816.79
7.2.290.0070.01716.78
7.2.130.0080.00816.75
7.2.120.0030.00916.73
7.2.110.0100.01016.76
7.2.100.0060.00617.00
7.2.90.0100.00716.75
7.2.80.0090.00716.75
7.2.70.0110.00317.05
7.2.60.0100.00516.96
7.2.50.0140.00416.95
7.2.40.0030.01316.89
7.2.30.0070.01016.85
7.2.20.0140.01018.30
7.2.10.0100.01218.08
7.2.00.0110.01218.11
7.1.250.0070.01015.69
7.1.200.0060.01015.69
7.1.140.0110.01418.25
7.1.130.0180.01718.33
7.1.120.0160.01518.68
7.1.110.0140.01217.99
7.1.100.0160.01617.83
7.1.90.0130.01117.77
7.1.80.0110.01518.21
7.1.70.0140.01616.83
7.1.60.0390.01935.21
7.1.50.0310.01434.92
7.1.40.0390.01934.25
7.1.30.0340.02734.42
7.1.20.0440.01234.52
7.1.10.0070.01716.43
7.1.00.0150.01516.50

preferences:
18.51 ms | 401 KiB | 5 Q