3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Token { // Constants default to public const PUBLIC_CONST = 0; // Constants then also can have a defined visibility private const PRIVATE_CONST = 0; protected const PROTECTED_CONST = 0; public const PUBLIC_CONST_TWO = 0; //Constants can only have one visibility declaration list private const FOO = 1, BAR = 2; }

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.0070.01418.14
8.3.50.0150.00418.01
8.3.40.0090.00618.52
8.3.30.0080.00818.47
8.3.20.0050.00220.16
8.3.10.0050.00320.46
8.3.00.0000.00721.69
8.2.180.0080.00816.38
8.2.170.0120.00322.96
8.2.160.0070.00722.08
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00421.00
8.2.120.0040.00426.35
8.2.110.0070.00321.05
8.2.100.0110.00017.78
8.2.90.0040.00417.90
8.2.80.0070.00017.97
8.2.70.0070.00317.25
8.2.60.0040.00417.80
8.2.50.0000.00818.09
8.2.40.0000.01020.30
8.2.30.0040.00419.32
8.2.20.0070.00017.53
8.2.10.0040.00417.93
8.2.00.0000.00817.80
8.1.280.0110.00425.92
8.1.270.0090.00022.20
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0090.00022.38
8.1.230.0070.00320.95
8.1.220.0080.00017.74
8.1.210.0000.00918.84
8.1.200.0100.00017.22
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0040.00818.45
8.1.160.0040.00420.50
8.1.150.0000.00718.66
8.1.140.0000.00819.50
8.1.130.0000.00817.61
8.1.120.0000.00717.34
8.1.110.0020.00517.33
8.1.100.0040.00417.32
8.1.90.0040.00417.33
8.1.80.0000.00717.19
8.1.70.0070.00017.36
8.1.60.0060.00617.47
8.1.50.0060.00317.35
8.1.40.0040.00417.40
8.1.30.0000.00817.34
8.1.20.0030.00617.36
8.1.10.0020.00517.31
8.1.00.0030.00517.16
8.0.300.0070.00019.91
8.0.290.0050.00216.58
8.0.280.0030.00318.31
8.0.270.0030.00317.12
8.0.260.0030.00317.12
8.0.250.0030.00316.81
8.0.240.0030.00316.75
8.0.230.0030.00516.70
8.0.220.0040.00416.63
8.0.210.0000.00816.80
8.0.200.0060.00016.88
8.0.190.0040.00416.84
8.0.180.0030.00516.76
8.0.170.0040.00416.84
8.0.160.0030.00316.75
8.0.150.0000.00816.69
8.0.140.0050.00216.58
8.0.130.0060.00013.19
8.0.120.0070.00316.80
8.0.110.0040.00416.73
8.0.100.0000.00716.82
8.0.90.0040.00416.75
8.0.80.0120.00916.70
8.0.70.0000.00816.84
8.0.60.0000.00816.80
8.0.50.0040.00416.76
8.0.30.0120.00816.84
8.0.20.0100.00817.40
8.0.10.0000.00716.87
8.0.00.0060.01316.62
7.4.330.0030.00316.66
7.4.320.0000.00616.38
7.4.300.0030.00316.46
7.4.290.0000.00716.23
7.4.280.0050.00216.48
7.4.270.0030.00616.23
7.4.260.0060.00316.30
7.4.250.0040.00416.28
7.4.240.0030.00516.44
7.4.230.0030.00316.36
7.4.220.0070.01116.29
7.4.210.0090.00916.44
7.4.200.0000.00716.44
7.4.160.0090.00616.30
7.4.150.0090.01217.40
7.4.140.0080.01717.86
7.4.130.0120.00616.40
7.4.120.0150.00716.24
7.4.110.0000.01616.14
7.4.100.0070.01116.25
7.4.90.0110.00816.39
7.4.80.0130.00319.39
7.4.70.0160.00016.46
7.4.60.0090.00916.39
7.4.50.0040.01116.21
7.4.40.0070.01116.51
7.4.30.0100.01316.30
7.3.330.0060.00013.03
7.3.320.0050.00013.23
7.3.310.0070.00016.27
7.3.300.0060.00016.10
7.3.290.0060.00016.04
7.3.280.0080.00916.11
7.3.270.0110.00617.40
7.3.260.0170.00616.34
7.3.250.0080.01016.14
7.3.240.0090.00916.15
7.3.230.0090.00916.39
7.3.210.0100.00616.36
7.3.200.0060.01016.34
7.3.190.0080.01216.16
7.3.180.0060.01316.12
7.3.170.0120.00616.49
7.3.160.0130.00916.25
7.2.330.0150.00616.44
7.2.320.0030.01716.27
7.2.310.0080.01416.15
7.2.300.0070.01016.18
7.2.290.0030.01316.31
7.1.00.0070.07322.51
7.0.20.0300.07020.19
7.0.10.0100.04720.15
7.0.00.0000.08720.16
5.6.170.0200.09020.40
5.6.160.0170.03020.55
5.6.150.0030.08018.12
5.6.140.0000.08018.28
5.6.130.0100.04718.12
5.6.120.0100.07721.11
5.6.110.0030.07720.98
5.6.100.0200.07721.13
5.6.90.0130.07720.96
5.6.80.0000.07320.36
5.5.310.0270.04720.41
5.5.300.0130.07717.99
5.5.290.0070.08018.03
5.5.280.0100.07720.84
5.5.270.0000.04720.75
5.5.260.0130.07020.64
5.5.250.0100.04020.49
5.5.240.0000.08020.28
5.4.450.0470.05319.54
5.4.440.0370.05819.48
5.4.430.0520.04919.56
5.4.420.0730.05219.51
5.4.410.0760.05719.45
5.4.400.0690.05719.26
5.4.390.0710.05319.14
5.4.380.0710.05219.10
5.4.370.0480.05819.16
5.4.360.0490.05719.12
5.4.350.0520.04819.23
5.4.340.0480.06019.16
5.4.320.0580.05019.27
5.4.310.0500.05119.17
5.4.300.0560.05919.23
5.4.290.0460.05219.01
5.4.280.0580.04319.17
5.4.270.0560.04619.11
5.4.260.0570.05119.20
5.4.250.0470.05319.12
5.4.240.0460.05119.05
5.4.230.0420.05619.14
5.4.220.0480.05119.09
5.4.210.0440.05719.16
5.4.200.0490.05819.05
5.4.190.0640.04818.99
5.4.180.0460.04919.13
5.4.170.0470.05619.14
5.4.160.0460.05619.21
5.4.150.0480.05019.01
5.4.140.0520.04916.54
5.4.130.0500.04716.44
5.4.120.0520.04816.50
5.4.110.0720.04716.60
5.4.100.0670.05816.45
5.4.90.0700.05316.57
5.4.80.0720.04316.52
5.4.70.0670.04816.51
5.4.60.0650.05016.50
5.4.50.0670.05016.47
5.4.40.0820.05716.56
5.4.30.0750.05216.51
5.4.20.0680.04516.37
5.4.10.0650.05316.45
5.4.00.0700.05516.00
5.3.290.0500.05614.62
5.3.280.0500.05314.61
5.3.270.0410.05814.60
5.3.260.0480.05414.61
5.3.250.0480.05414.66
5.3.240.0420.05814.62
5.3.230.0500.05014.60
5.3.220.0460.05414.49
5.3.210.0700.05014.56
5.3.200.0720.05214.63
5.3.190.0750.04814.52
5.3.180.0670.05214.50
5.3.170.0670.05014.58
5.3.160.0670.05314.54
5.3.150.0650.05514.50
5.3.140.0680.04714.49
5.3.130.0630.05714.45
5.3.120.0670.05314.55
5.3.110.0730.04514.46
5.3.100.0700.05314.02
5.3.90.0730.04714.01
5.3.80.0670.05014.04
5.3.70.0730.05214.04
5.3.60.0680.04813.99
5.3.50.0670.05214.00
5.3.40.0620.04813.92
5.3.30.0680.04814.02
5.3.20.0520.05313.73
5.3.10.0650.05213.73
5.3.00.0680.04713.57
5.2.170.0580.04011.05
5.2.160.0550.03811.26
5.2.150.0580.04011.22
5.2.140.0600.04211.08
5.2.130.0500.04311.07
5.2.120.0530.03811.10
5.2.110.0520.03811.09
5.2.100.0530.04011.04
5.2.90.0550.03811.12
5.2.80.0450.04311.07
5.2.70.0470.04311.01
5.2.60.0580.04011.08
5.2.50.0420.04711.17
5.2.40.0380.04210.97
5.2.30.0330.04511.04
5.2.20.0380.04010.92
5.2.10.0450.04010.73
5.2.00.0430.04010.65
5.1.60.0520.0359.96
5.1.50.0370.04010.08
5.1.40.0470.0389.98
5.1.30.0380.04010.41
5.1.20.0450.03510.44
5.1.10.0400.03310.13
5.1.00.0350.03810.01
5.0.50.0280.0278.54
5.0.40.0200.0288.40
5.0.30.0220.0428.20
5.0.20.0220.0308.17
5.0.10.0250.0258.31
5.0.00.0230.0388.11
4.4.90.0200.0236.72
4.4.80.0250.0206.72
4.4.70.0180.0226.72
4.4.60.0230.0236.72
4.4.50.0200.0226.72
4.4.40.0270.0306.72
4.4.30.0200.0226.72
4.4.20.0200.0236.72
4.4.10.0250.0206.73
4.4.00.0230.0336.73
4.3.110.0230.0186.74
4.3.100.0230.0206.75
4.3.90.0220.0206.75
4.3.80.0220.0326.75
4.3.70.0230.0186.75
4.3.60.0230.0176.75
4.3.50.0180.0236.75
4.3.40.0150.0356.75
4.3.30.0120.0256.75
4.3.20.0070.0236.75
4.3.10.0130.0206.75
4.3.00.0070.0256.75

preferences:
61.24 ms | 401 KiB | 5 Q