3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class Foo { const BOO = 1; const FOO = 2; } class Goo { const MOO = Foo::BOO; const ROO = Foo::FOO; } echo Goo::MOOO; echo Goo::ROO;

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.40.0090.00618.85
8.3.30.0130.00019.14
8.3.20.0110.00420.26
8.3.10.0050.00320.48
8.3.00.0080.00019.13
8.2.170.0070.00722.96
8.2.160.0070.00720.39
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00422.00
8.2.110.0040.00720.95
8.2.100.0030.00918.09
8.2.90.0060.00319.05
8.2.80.0000.00817.97
8.2.70.0030.00517.50
8.2.60.0030.00617.91
8.2.50.0040.00418.07
8.2.40.0000.00818.09
8.2.30.0070.00019.43
8.2.20.0040.00417.79
8.2.10.0080.00018.13
8.2.00.0060.00317.76
8.1.270.0080.00022.19
8.1.260.0000.00726.35
8.1.250.0080.00028.09
8.1.240.0000.01021.43
8.1.230.0080.00319.48
8.1.220.0000.00917.74
8.1.210.0040.00418.77
8.1.200.0070.00317.36
8.1.190.0040.00417.23
8.1.180.0070.00018.10
8.1.170.0000.00818.71
8.1.160.0000.00721.96
8.1.150.0070.00018.72
8.1.140.0040.00417.35
8.1.130.0070.00017.75
8.1.120.0040.00417.29
8.1.110.0000.00717.27
8.1.100.0040.00417.39
8.1.90.0080.00217.42
8.1.80.0080.00017.42
8.1.70.0080.00017.34
8.1.60.0000.00817.41
8.1.50.0050.00517.36
8.1.40.0000.00817.32
8.1.30.0040.00417.49
8.1.20.0040.00417.47
8.1.10.0030.00717.56
8.1.00.0060.00317.30
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0070.00018.46
8.0.270.0000.00717.24
8.0.260.0060.00017.28
8.0.250.0030.00316.89
8.0.240.0030.00317.01
8.0.230.0000.00716.93
8.0.220.0000.00716.96
8.0.210.0030.00316.96
8.0.200.0040.00417.06
8.0.190.0080.00016.99
8.0.180.0040.00416.84
8.0.170.0040.00416.95
8.0.160.0050.00216.86
8.0.150.0000.00716.94
8.0.140.0020.00516.88
8.0.130.0060.00013.43
8.0.120.0000.00716.93
8.0.110.0070.00016.85
8.0.100.0000.00716.87
8.0.90.0000.00716.91
8.0.80.0090.00616.99
8.0.70.0070.00017.00
8.0.60.0070.00016.89
8.0.50.0040.00416.97
8.0.30.0090.01117.18
8.0.20.0050.01417.40
8.0.10.0040.00416.87
8.0.00.0080.00916.56
7.4.330.0050.00015.00
7.4.320.0060.00016.44
7.4.300.0030.00316.40
7.4.290.0040.00416.52
7.4.280.0070.00016.38
7.4.270.0030.00316.50
7.4.260.0000.00916.39
7.4.250.0040.00416.46
7.4.240.0030.00316.47
7.4.230.0000.00716.50
7.4.220.0130.00616.48
7.4.210.0060.00616.53
7.4.200.0040.00416.62
7.4.160.0060.00916.55
7.4.150.0230.00317.40
7.4.140.0110.01217.86
7.4.130.0090.00716.54
7.4.120.0120.00716.53
7.4.110.0060.01216.57
7.4.100.0070.01016.55
7.4.90.0100.00616.57
7.4.80.0090.00919.39
7.4.70.0030.01716.32
7.4.60.0120.00616.53
7.4.50.0000.00816.48
7.4.40.0100.00616.46
7.4.30.0050.01116.52
7.4.00.0120.00315.17
7.3.330.0030.00313.11
7.3.320.0030.00313.13
7.3.310.0000.00716.31
7.3.300.0030.00316.29
7.3.290.0050.00816.29
7.3.280.0090.00816.23
7.3.270.0040.01517.40
7.3.260.0160.00316.31
7.3.250.0090.00916.35
7.3.240.0110.00716.23
7.3.230.0060.00916.39
7.3.210.0070.01016.53
7.3.200.0070.01319.39
7.3.190.0090.00916.48
7.3.180.0060.01116.52
7.3.170.0090.00616.44
7.3.160.0090.00616.39
7.2.330.0050.01116.48
7.2.320.0090.01216.58
7.2.310.0090.01016.51
7.2.300.0170.00016.61
7.2.290.0140.00716.43
7.2.60.0090.00616.84
7.2.00.0070.01119.48
7.1.200.0100.00315.68
7.1.100.0070.01017.85
7.1.70.0030.00517.08
7.1.60.0120.01219.61
7.1.50.0030.01916.91
7.1.00.0030.07722.28
7.0.200.0000.00716.38
7.0.140.0030.07322.07
7.0.60.0100.04719.81
7.0.50.0100.08317.94
7.0.40.0270.07320.40
7.0.30.0170.09020.29
7.0.20.0330.08020.24
7.0.10.0070.09020.10
7.0.00.0070.08020.23
5.6.280.0070.07021.00
5.6.210.0070.08320.70
5.6.200.0030.05718.27
5.6.190.0030.05320.39
5.6.180.0200.08320.52
5.6.170.0230.08020.46
5.6.160.0000.04720.39
5.6.150.0130.07718.28
5.6.140.0130.04318.15
5.6.130.0030.05718.15
5.6.120.0100.08321.02
5.6.110.0130.07721.02
5.6.100.0130.08020.89
5.6.90.0070.09020.96
5.6.80.0030.08020.40
5.5.350.4230.03320.45
5.5.340.0070.05017.98
5.5.330.0170.06320.25
5.5.320.0330.06720.32
5.5.310.0270.06320.23
5.5.300.0100.06718.05
5.5.290.0030.08317.99
5.5.280.0030.07020.66
5.5.270.0100.08020.75
5.5.260.0200.06720.89
5.5.250.0170.07320.61
5.5.240.0170.07720.18
5.4.450.0300.04019.52
5.4.440.0230.04019.39
5.4.430.0330.03019.47
5.4.420.0370.04019.38
5.4.410.0300.03319.32
5.4.400.0270.03319.00
5.4.390.0230.03718.87
5.4.380.0370.03719.24
5.4.370.0330.03318.95
5.4.360.0230.04318.95
5.4.350.0400.02019.25
5.4.340.0300.03318.84
5.4.320.0270.03719.24
5.4.310.0230.03719.26
5.4.300.0330.04019.17
5.4.290.0230.04319.19
5.4.280.0270.03319.25
5.4.270.0230.04019.21
5.4.260.0330.03319.22
5.4.250.0300.03019.21
5.4.240.0300.04319.24
5.4.230.0300.03019.14
5.4.220.0200.04019.08
5.4.210.0270.04018.97
5.4.200.0330.03719.19
5.4.190.0270.03719.12
5.4.180.0270.03718.86
5.4.170.0230.03719.16
5.4.160.0230.03719.29
5.4.150.0370.03319.17
5.4.140.0330.07016.43
5.4.130.0230.03716.55
5.4.120.0230.05316.71
5.4.110.0230.03716.62
5.4.100.0270.03716.61
5.4.90.0330.04016.30
5.4.80.0400.03716.40
5.4.70.0300.04716.59
5.4.60.0370.05716.19
5.4.50.0300.03716.43
5.4.40.0300.03016.42
5.4.30.0330.06716.52
5.4.20.0270.03716.42
5.4.10.0400.05716.53
5.4.00.0270.03715.78
5.3.290.0230.07714.57
5.3.280.0370.04714.66
5.3.270.0300.04014.83
5.3.260.0300.05014.58
5.3.250.0330.07014.49
5.3.240.0300.05014.59
5.3.230.0500.06314.66
5.3.220.0370.06314.48
5.3.210.0300.07714.46
5.3.200.0330.07314.72
5.3.190.0330.04314.53
5.3.180.0300.03714.54
5.3.170.0330.07314.48
5.3.160.0370.04014.55
5.3.150.0400.06014.70
5.3.140.0470.06014.53
5.3.130.0370.07014.46
5.3.120.0400.06714.54
5.3.110.0370.03314.53
5.3.100.0400.07014.18
5.3.90.0500.05013.93
5.3.80.0400.06714.16
5.3.70.0430.05014.16
5.3.60.0430.03714.08
5.3.50.0400.06014.02
5.3.40.0330.05013.85
5.3.30.0330.04013.89
5.3.20.0430.06313.61
5.3.10.0370.05713.73
5.3.00.0400.05713.54
5.2.170.0370.05711.85
5.2.160.0330.04711.85
5.2.150.0300.04011.85
5.2.140.0300.05311.85
5.2.130.0400.04711.85
5.2.120.0330.05011.85
5.2.110.0330.05311.85
5.2.100.0470.04011.85
5.2.90.0370.05311.85
5.2.80.0300.03011.85
5.2.70.0270.04011.85
5.2.60.0330.03311.85
5.2.50.0300.03311.85
5.2.40.0170.05711.85
5.2.30.0270.03711.85
5.2.20.0300.05311.85
5.2.10.0300.03011.85
5.2.00.0300.04711.85
5.1.60.0300.04311.85
5.1.50.0300.03311.85
5.1.40.0230.05011.85
5.1.30.0230.03311.85
5.1.20.0200.03711.85
5.1.10.0270.02311.85
5.1.00.0230.03311.85
5.0.50.0130.04011.85
5.0.40.0130.04011.85
5.0.30.0100.05311.85
5.0.20.0100.03011.85
5.0.10.0170.04011.85
5.0.00.0130.06311.85
4.4.90.0130.02011.85
4.4.80.0130.02011.85
4.4.70.0170.02011.85
4.4.60.0130.02011.85
4.4.50.0100.02311.85
4.4.40.0130.05011.85
4.4.30.0130.04011.85
4.4.20.0200.02711.85
4.4.10.0130.02711.85
4.4.00.0130.05011.85
4.3.110.0170.03011.85
4.3.100.0170.02711.85
4.3.90.0100.02311.85
4.3.80.0100.03711.85
4.3.70.0100.02311.85
4.3.60.0130.01311.85
4.3.50.0130.01711.85
4.3.40.0130.03711.85
4.3.30.0070.03011.85
4.3.20.0100.03711.85
4.3.10.0030.02011.85
4.3.00.0100.03311.85

preferences:
43.44 ms | 400 KiB | 5 Q