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(get_class($foo)::TEST); $bar = new Bar(); var_dump(get_class($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.60.0000.01418.42
8.3.50.0000.01416.29
8.3.40.0110.00418.64
8.3.30.0110.00418.71
8.3.20.0040.00420.34
8.3.10.0070.00021.94
8.3.00.0070.00020.96
8.2.180.0040.01118.27
8.2.170.0100.00722.96
8.2.160.0070.00722.11
8.2.150.0110.00424.18
8.2.140.0000.00824.66
8.2.130.0020.00522.13
8.2.120.0070.00026.35
8.2.110.0070.00320.52
8.2.100.0090.00317.91
8.2.90.0060.00319.08
8.2.80.0050.00317.97
8.2.70.0000.01017.63
8.2.60.0080.00018.05
8.2.50.0040.00418.10
8.2.40.0050.00322.38
8.2.30.0000.00819.31
8.2.20.0050.00518.04
8.2.10.0000.00717.93
8.2.00.0030.00517.99
8.1.280.0180.00025.92
8.1.270.0080.00022.24
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00920.74
8.1.230.0070.00419.14
8.1.220.0090.00017.74
8.1.210.0050.00518.77
8.1.200.0030.00617.13
8.1.190.0060.00317.10
8.1.180.0040.00418.10
8.1.170.0000.00818.56
8.1.160.0030.00518.94
8.1.150.0040.00420.55
8.1.140.0040.00419.57
8.1.130.0070.00018.88
8.1.120.0070.00317.45
8.1.110.0000.00917.43
8.1.100.0000.00717.44
8.1.90.0060.00317.34
8.1.80.0030.00317.36
8.1.70.0070.00017.42
8.1.60.0050.00317.41
8.1.50.0050.00317.52
8.1.40.0000.00817.52
8.1.30.0000.00817.61
8.1.20.0040.00717.63
8.1.10.0040.00417.48
8.1.00.0040.00417.46
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0030.00318.38
8.0.270.0030.00317.22
8.0.260.0030.00316.80
8.0.250.0030.00316.82
8.0.240.0030.00516.78
8.0.230.0060.00316.98
8.0.220.0070.00016.85
8.0.210.0030.00316.79
8.0.200.0000.00617.01
8.0.190.0080.00016.93
8.0.180.0040.00416.84
8.0.170.0080.00016.95
8.0.160.0120.00016.95
8.0.150.0000.00716.95
8.0.140.0040.00416.85
8.0.130.0040.00413.28
8.0.120.0000.00816.87
8.0.110.0040.00416.78
8.0.100.0040.00416.98
8.0.90.0040.00416.73
8.0.80.0070.01016.89
8.0.70.0000.00716.95
8.0.60.0070.00016.71
8.0.50.0080.00016.92
8.0.30.0130.00717.01
8.0.20.0130.00917.40
8.0.10.0000.00716.88
8.0.00.0100.00716.89
7.4.330.0030.00315.55
7.4.320.0000.00616.34
7.4.300.0000.00616.58
7.4.290.0060.00516.54
7.4.280.0040.00416.46
7.4.270.0040.00416.40
7.4.260.0000.00716.52
7.4.250.0000.00716.51
7.4.240.0040.00416.35
7.4.230.0030.00316.56
7.4.220.0100.01016.63
7.4.210.0100.01016.61
7.4.200.0030.00516.27
7.4.160.0090.00916.50
7.4.150.0060.01317.40
7.4.140.0070.01117.86
7.4.130.0130.00616.70
7.4.120.0100.01316.35
7.4.110.0090.01516.54
7.4.100.0140.00616.61
7.4.90.0100.00716.49
7.4.80.0130.00419.39
7.4.70.0070.01416.31
7.4.60.0090.01216.51
7.4.50.0100.00316.43
7.4.40.0100.00616.41
7.4.30.0070.01316.57
7.4.00.0090.00614.52
7.3.330.0000.00513.01
7.3.320.0050.00013.01
7.3.310.0040.00416.13
7.3.300.0030.00316.11
7.3.290.0090.00716.22
7.3.280.0090.00916.24
7.3.270.0110.00717.40
7.3.260.0090.00816.38
7.3.250.0120.00516.38
7.3.240.0130.00516.29
7.3.230.0070.01016.44
7.3.210.0140.00316.44
7.3.200.0060.01016.35
7.3.190.0100.00616.38
7.3.180.0140.00716.52
7.3.170.0040.01216.30
7.3.160.0060.00916.42
7.2.330.0100.00716.50
7.2.320.0080.00816.25
7.2.310.0110.00616.50
7.2.300.0130.01016.61
7.2.290.0120.00416.64
7.2.60.0000.00916.27
7.2.00.0070.00719.10
7.1.200.0060.00315.45
7.1.100.0000.01117.98
7.1.70.0000.01316.97
7.1.60.0300.01733.12
7.1.50.0370.01732.79
7.1.40.0300.01732.33
7.1.30.0370.01332.53
7.1.20.0370.01332.70
7.1.10.0970.01014.77
7.1.00.0270.00714.66
7.0.200.0230.01014.77
7.0.190.0270.00714.68
7.0.180.0200.01014.24
7.0.170.0200.01314.33
7.0.160.0370.01014.27
7.0.150.0230.00714.22
7.0.140.0270.01014.45
7.0.130.0200.01314.61
7.0.120.0270.00714.71
7.0.110.0230.00714.28
7.0.100.0230.01014.11
7.0.90.0270.00314.39
7.0.80.0330.01314.36
7.0.70.0230.00714.29
7.0.60.0230.01014.30
7.0.50.0230.01014.19
7.0.40.0200.01314.48
7.0.30.0230.01014.60
7.0.20.0200.01014.40
7.0.10.0270.00714.45
7.0.00.0230.01314.66

preferences:
53.14 ms | 401 KiB | 5 Q