3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Lol { const TEST = 'Lol'; } class Foo implements Lol { const TEST = 'Foo'; } class Bar implements Lol {} $foo = new Foo(); var_dump($foo::TEST); $bar = new Bar(); var_dump($bar::TEST);

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.0090.00916.63
8.3.60.0120.00318.43
8.3.50.0120.00717.38
8.3.40.0110.00718.67
8.3.30.0030.01218.54
8.3.20.0000.00820.24
8.3.10.0060.00323.61
8.3.00.0000.00820.96
8.2.190.0130.00616.58
8.2.180.0070.00718.00
8.2.170.0140.00722.96
8.2.160.0100.00321.96
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00322.25
8.2.120.0070.00026.35
8.2.110.0060.00320.53
8.2.100.0070.00417.72
8.2.90.0080.00019.13
8.2.80.0040.00417.97
8.2.70.0050.00317.37
8.2.60.0000.00718.04
8.2.50.0040.00418.10
8.2.40.0040.00422.15
8.2.30.0000.00719.35
8.2.20.0060.00317.93
8.2.10.0040.00417.96
8.2.00.0080.00018.11
8.1.280.0140.00325.92
8.1.270.0080.00022.14
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0040.00420.80
8.1.230.0040.00718.97
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0040.00416.99
8.1.190.0030.00617.10
8.1.180.0040.00418.10
8.1.170.0030.00618.64
8.1.160.0030.00319.00
8.1.150.0040.00420.73
8.1.140.0000.00719.57
8.1.130.0030.00318.89
8.1.120.0040.00717.51
8.1.110.0030.00617.38
8.1.100.0000.00717.40
8.1.90.0040.00417.42
8.1.80.0040.00417.34
8.1.70.0000.00717.49
8.1.60.0070.00317.56
8.1.50.0040.00417.41
8.1.40.0030.00517.46
8.1.30.0000.00817.66
8.1.20.0060.00317.55
8.1.10.0000.00717.54
8.1.00.0070.00017.46
8.0.300.0000.00718.77
8.0.290.0040.00416.74
8.0.280.0040.00418.29
8.0.270.0000.00817.05
8.0.260.0000.00716.81
8.0.250.0000.00716.93
8.0.240.0000.00716.75
8.0.230.0030.00616.94
8.0.220.0040.00416.89
8.0.210.0030.00316.91
8.0.200.0030.00316.85
8.0.190.0080.00016.92
8.0.180.0040.00816.81
8.0.170.0000.00716.82
8.0.160.0090.00316.79
8.0.150.0080.00016.79
8.0.140.0000.00716.73
8.0.130.0000.00713.23
8.0.120.0030.00516.73
8.0.110.0000.00816.91
8.0.100.0040.00316.84
8.0.90.0080.00016.77
8.0.80.0120.00316.83
8.0.70.0000.00816.86
8.0.60.0000.00816.92
8.0.50.0040.00416.93
8.0.30.0130.00617.06
8.0.20.0090.01517.40
8.0.10.0070.00016.96
8.0.00.0030.01716.71
7.4.330.0050.00015.55
7.4.320.0040.00416.53
7.4.300.0060.00016.53
7.4.290.0090.00016.48
7.4.280.0040.00416.48
7.4.270.0000.00716.60
7.4.260.0070.00016.32
7.4.250.0000.00816.52
7.4.240.0000.00816.43
7.4.230.0030.00316.57
7.4.220.0070.01316.47
7.4.210.0120.00316.51
7.4.200.0070.00016.63
7.4.160.0080.00816.34
7.4.150.0060.01317.40
7.4.140.0090.00817.86
7.4.130.0060.01216.64
7.4.120.0080.01116.48
7.4.110.0080.00916.32
7.4.100.0070.01116.34
7.4.90.0100.00616.43
7.4.80.0060.01119.39
7.4.70.0130.00316.43
7.4.60.0060.01016.63
7.4.50.0130.00316.41
7.4.40.0030.01416.26
7.4.30.0100.01016.65
7.4.00.0120.00314.97
7.3.330.0020.00213.05
7.3.320.0020.00313.09
7.3.310.0040.00416.25
7.3.300.0000.00716.11
7.3.290.0100.00716.22
7.3.280.0090.00916.24
7.3.270.0080.00817.40
7.3.260.0090.00816.36
7.3.250.0110.00916.29
7.3.240.0080.00916.29
7.3.230.0030.01516.54
7.3.210.0080.00916.47
7.3.200.0090.00616.63
7.3.190.0090.00616.46
7.3.180.0200.00316.29
7.3.170.0040.01116.25
7.3.160.0060.00916.27
7.3.120.0040.00414.66
7.3.110.0070.00714.70
7.3.100.0080.00614.97
7.3.90.0120.00314.80
7.3.80.0090.00614.82
7.3.70.0000.01714.82
7.3.60.0090.00614.76
7.3.50.0060.00914.59
7.3.40.0090.00614.79
7.3.30.0000.01514.54
7.3.20.0100.00716.47
7.3.10.0030.01416.38
7.3.00.0000.01216.72
7.2.330.0150.02116.36
7.2.320.0090.01416.22
7.2.310.0130.00716.59
7.2.300.0070.01016.41
7.2.290.0030.01216.35
7.2.240.0100.00314.95
7.2.230.0070.00714.83
7.2.220.0090.00614.52
7.2.210.0070.01014.91
7.2.200.0060.01214.96
7.2.190.0100.00314.76
7.2.180.0040.01114.93
7.2.170.0070.00714.95
7.2.160.0090.00614.99
7.2.150.0070.01016.43
7.2.140.0070.00716.59
7.2.130.0030.01016.70
7.2.120.0030.00916.88
7.2.110.0060.00516.98
7.2.100.0070.01116.59
7.2.90.0030.01316.56
7.2.80.0070.00316.81
7.2.70.0170.00016.66
7.2.60.0080.00816.63
7.2.50.0100.00616.74
7.2.40.0040.01116.39
7.2.30.0040.00816.94
7.2.20.0070.00716.79
7.2.10.0060.00916.94
7.2.00.0030.01017.81
7.1.330.0040.00815.36
7.1.320.0030.01115.68
7.1.310.0060.01215.52
7.1.300.0000.01215.73
7.1.290.0070.00715.79
7.1.280.0040.00715.61
7.1.270.0040.01115.76
7.1.260.0070.00715.62
7.1.250.0070.00715.80
7.1.200.0030.01115.77
7.1.100.0000.01217.84
7.1.70.0040.00917.04
7.1.60.0080.01717.16
7.1.50.0090.00916.48
7.1.40.0040.01116.67
7.1.30.0000.01616.30
7.1.20.0080.00816.64
7.1.10.0070.00516.54
7.1.00.0030.00716.61
7.0.200.0090.00416.44
7.0.190.0120.00716.37
7.0.180.0040.00915.97
7.0.170.0090.00716.10
7.0.160.0080.00415.86
7.0.150.0050.00815.91
7.0.140.0040.01316.07
7.0.130.0100.00716.10
7.0.120.0040.01316.41
7.0.110.0080.00516.28
7.0.100.0060.00616.24
7.0.90.0080.00416.16
7.0.80.0070.00716.10
7.0.70.0080.01016.11
7.0.60.0110.00316.05
7.0.50.0000.02016.39
7.0.40.0130.00014.90
7.0.30.0030.01114.90
7.0.20.0000.01114.90
7.0.10.0090.00614.90
7.0.00.0090.00614.90

preferences:
49.91 ms | 401 KiB | 5 Q