3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Month extends SplEnum { const __default = self::January; const January = 1; const February = 2; } echo new Month(Month::February) . PHP_EOL; try { new Month(13); } catch (UnexpectedValueException $uve) { echo $uve->getMessage() . PHP_EOL; }

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.0110.00316.50
8.3.50.0090.01117.49
8.3.40.0070.01418.90
8.3.30.0100.00718.76
8.3.20.0080.00018.60
8.3.10.0120.00320.48
8.3.00.0030.00919.38
8.2.180.0040.01116.63
8.2.170.0120.00322.96
8.2.160.0040.01121.13
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0000.00726.16
8.2.120.0080.00019.36
8.2.110.0030.00620.89
8.2.100.0040.00817.91
8.2.90.0000.00819.33
8.2.80.0030.00719.19
8.2.70.0050.00317.63
8.2.60.0000.00717.80
8.2.50.0000.00818.07
8.2.40.0080.00018.14
8.2.30.0040.00418.00
8.2.20.0040.00417.72
8.2.10.0040.00417.68
8.2.00.0030.00517.73
8.1.280.0110.00725.92
8.1.270.0060.00324.66
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0050.00522.54
8.1.230.0050.00521.02
8.1.220.0040.00417.79
8.1.210.0050.00519.03
8.1.200.0060.00317.22
8.1.190.0040.00417.30
8.1.180.0040.00418.10
8.1.170.0000.00918.96
8.1.160.0000.00818.89
8.1.150.0000.00818.52
8.1.140.0000.00717.39
8.1.130.0030.00517.82
8.1.120.0030.00317.30
8.1.110.0000.00817.30
8.1.100.0000.00817.28
8.1.90.0050.00217.43
8.1.80.0040.00417.42
8.1.70.0000.00817.35
8.1.60.0050.00517.38
8.1.50.0000.00817.41
8.1.40.0070.00017.42
8.1.30.0050.00217.44
8.1.20.0050.00217.48
8.1.10.0040.00417.43
8.1.00.0040.00417.45
8.0.300.0000.00819.85
8.0.290.0040.00416.88
8.0.280.0000.00718.34
8.0.270.0090.00017.14
8.0.260.0040.00416.88
8.0.250.0070.00317.02
8.0.240.0000.00716.98
8.0.230.0070.00016.97
8.0.220.0030.00616.82
8.0.210.0040.00416.95
8.0.200.0070.00017.02
8.0.190.0070.00016.97
8.0.180.0000.00717.04
8.0.170.0060.00316.87
8.0.160.0030.00316.96
8.0.150.0000.00716.88
8.0.140.0040.00816.90
8.0.130.0050.00013.41
8.0.120.0000.00716.81
8.0.110.0000.00816.83
8.0.100.0080.00016.83
8.0.90.0040.00416.97
8.0.80.0090.00616.83
8.0.70.0040.00416.77
8.0.60.0040.00416.79
8.0.50.0030.00516.82
8.0.30.0070.01117.00
8.0.20.0090.01517.06
8.0.10.0040.00417.06
8.0.00.0110.00816.89
7.4.330.0000.00412.93
7.4.320.0030.00316.43
7.4.300.0030.00316.54
7.4.290.0000.00716.54
7.4.280.0040.00416.39
7.4.270.0000.00716.55
7.4.260.0000.00613.13
7.4.250.0030.00616.52
7.4.240.0070.00016.57
7.4.230.0000.00916.62
7.4.220.0130.00616.56
7.4.210.0090.00816.47
7.4.200.0000.00816.57
7.4.190.0000.00716.30
7.4.160.0060.01116.44
7.4.150.0140.00316.41
7.4.140.0140.00516.53
7.4.130.0050.01216.49
7.4.120.0180.00716.39
7.4.110.0030.01316.57
7.4.100.0060.01016.31
7.4.90.0110.00716.33
7.4.80.0180.00419.39
7.4.70.0180.00416.33
7.4.60.0050.01316.34
7.4.50.0030.00316.33
7.4.40.0070.00716.48
7.4.30.0110.01116.41
7.4.00.0060.00914.64
7.3.330.0000.00613.33
7.3.320.0000.00513.08
7.3.310.0030.00316.40
7.3.300.0070.00016.26
7.3.290.0040.01416.22
7.3.280.0100.01016.30
7.3.270.0110.00616.50
7.3.260.0030.01416.58
7.3.250.0100.00816.52
7.3.240.0100.00716.38
7.3.230.0130.00316.22
7.3.210.0120.00616.44
7.3.200.0070.01116.28
7.3.190.0140.01016.22
7.3.180.0070.00716.37
7.3.170.0060.01016.43
7.3.160.0090.01216.44
7.3.120.0100.00314.98
7.2.330.0170.00016.50
7.2.320.0070.01016.32
7.2.310.0080.01316.66
7.2.300.0140.00716.34
7.2.290.0000.01616.56
7.2.00.0000.01419.05
7.1.100.0100.00718.05
7.1.70.0030.00316.85
7.1.60.0090.00619.40
7.1.50.0000.02216.91
7.1.00.0030.07722.54
7.0.200.0000.00716.57
7.0.140.0070.06722.09
7.0.120.0000.06722.04
7.0.60.0130.07719.95
7.0.50.0000.04317.85
7.0.40.0130.06319.96
7.0.30.0330.06720.21
7.0.20.0270.06020.06
7.0.10.0200.04720.21
7.0.00.0200.07020.21
5.6.280.0070.07021.07
5.6.210.0100.07320.47
5.6.200.0070.07718.18
5.6.190.0100.08020.59
5.6.180.0230.03720.64
5.6.170.0230.08020.39
5.6.160.0070.05720.50
5.6.150.0130.07018.28
5.6.140.0070.04018.14
5.6.130.0070.08718.18
5.6.120.0200.04720.98
5.6.110.0070.04321.14
5.6.100.0270.06320.99
5.6.90.0070.06021.02
5.6.80.0000.07720.40
5.5.350.0330.07020.41
5.5.340.0130.06317.98
5.5.330.0070.06320.13
5.5.320.0100.05720.38
5.5.310.0100.05020.34
5.5.300.0070.04018.08
5.5.290.0070.06017.98
5.5.280.0030.04020.97
5.5.270.0030.05720.73
5.5.260.0130.07720.77
5.5.250.0100.07720.55
5.5.240.0030.05020.35
5.4.450.0030.04019.18
5.4.440.0100.03319.50
5.4.430.0130.03719.18
5.4.420.0070.03319.40
5.4.410.0200.03019.35
5.4.400.0030.03719.01
5.4.390.0030.03719.15
5.4.380.0100.03019.15
5.4.370.0030.03719.15
5.4.360.0030.03718.88
5.4.350.0070.03319.00
5.4.340.0000.04319.05
5.4.320.0070.03719.14
5.4.310.0070.05019.14
5.4.300.0070.07319.07
5.4.290.0030.05319.14
5.4.280.0030.07319.20
5.4.270.0130.05019.24
5.4.260.0070.04719.24
5.4.250.0070.07718.84
5.4.240.0130.07019.14
5.4.230.0030.07718.88
5.4.220.0170.07319.07
5.4.210.0100.07319.14
5.4.200.0100.07719.19
5.4.190.0030.07318.84
5.4.180.0100.05719.11
5.4.170.0100.07019.19
5.4.160.0130.04719.18
5.4.150.0130.07019.12
5.4.140.0070.05716.48
5.4.130.0100.06716.30
5.4.120.0100.04016.39
5.4.110.0100.05016.28
5.4.100.0100.07016.37
5.4.90.0100.05016.43
5.4.80.0030.07716.44
5.4.70.0100.04316.48
5.4.60.0070.04716.35
5.4.50.0100.03316.63
5.4.40.0030.05316.43
5.4.30.0100.04316.36
5.4.20.0100.05016.36
5.4.10.0130.07316.27
5.4.00.0070.04315.76
5.3.290.0070.05314.65
5.3.280.0130.06014.59
5.3.270.0130.06714.75
5.3.260.0100.04714.65
5.3.250.0070.08014.60
5.3.240.0100.07314.62
5.3.230.0070.06014.63
5.3.220.0070.04014.57
5.3.210.0070.05714.71
5.3.200.0000.08014.60
5.3.190.0100.04314.71
5.3.180.0100.06714.60
5.3.170.0130.07014.57
5.3.160.0030.06314.60
5.3.150.0030.04314.55
5.3.140.0000.04714.59
5.3.130.0070.05314.54
5.3.120.0100.03314.53
5.3.110.0030.08314.63
5.3.100.0070.07714.09
5.3.90.0100.06714.16
5.3.80.0100.04014.03
5.3.70.0030.05014.08
5.3.60.0000.04714.04
5.3.50.0030.05714.11
5.3.40.0070.04013.89
5.3.30.0000.06313.89
5.3.20.0030.04713.73
5.3.10.0100.06713.71
5.3.00.0030.07313.63
5.2.170.0070.04311.15
5.2.160.0030.06011.15
5.2.150.0030.05711.31
5.2.140.0030.06011.06
5.2.130.0030.06711.17
5.2.120.0100.05310.99
5.2.110.0000.04011.05
5.2.100.0100.02311.06
5.2.90.0070.03011.25
5.2.80.0030.03311.14
5.2.70.0030.06011.14
5.2.60.0070.04311.09
5.2.50.0030.03311.16
5.2.40.0070.03710.88
5.2.30.0100.06010.96
5.2.20.0100.05710.96
5.2.10.0030.06010.91
5.2.00.0070.05710.75
5.1.60.0070.05310.04
5.1.50.0100.0479.89
5.1.40.0030.0509.95
5.1.30.0000.06010.29
5.1.20.0030.05710.36
5.1.10.0100.04710.04
5.1.00.0100.05310.08
5.0.50.0070.0408.68
5.0.40.0030.0408.46
5.0.30.0000.0478.28
5.0.20.0100.0378.23
5.0.10.0070.0408.19
5.0.00.0030.0708.06
4.4.90.0030.0277.69
4.4.80.0030.0207.69
4.4.70.0000.0377.69
4.4.60.0030.0307.69
4.4.50.0070.0337.69
4.4.40.0000.0407.69
4.4.30.0000.0377.69
4.4.20.0030.0237.69
4.4.10.0070.0337.69
4.4.00.0130.0477.69
4.3.110.0070.0237.69
4.3.100.0000.0307.69
4.3.90.0000.0377.69
4.3.80.0030.0337.69
4.3.70.0100.0207.69
4.3.60.0000.0237.69
4.3.50.0030.0337.69
4.3.40.0000.0437.69
4.3.30.0000.0337.69
4.3.20.0000.0377.69
4.3.10.0000.0307.69
4.3.00.0000.0377.69

preferences:
48.06 ms | 401 KiB | 5 Q