3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Lol { const TEST = 'Lol'; } class Foo { 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.60.0110.00718.55
8.3.50.0070.00716.21
8.3.40.0140.00418.70
8.3.30.0070.00718.77
8.3.20.0070.00020.16
8.3.10.0000.00723.51
8.3.00.0040.00420.94
8.2.180.0080.00818.41
8.2.170.0070.00722.96
8.2.160.0070.00722.26
8.2.150.0090.00624.18
8.2.140.0080.00024.66
8.2.130.0040.00422.25
8.2.120.0070.00026.35
8.2.110.0050.00520.40
8.2.100.0060.00617.64
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00917.93
8.2.50.0050.00318.10
8.2.40.0000.00920.61
8.2.30.0080.00020.94
8.2.20.0060.00318.05
8.2.10.0000.00817.99
8.2.00.0070.00018.12
8.1.280.0060.01025.92
8.1.270.0000.00722.24
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00322.02
8.1.230.0040.00719.00
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0080.00317.25
8.1.190.0050.00317.35
8.1.180.0040.00418.10
8.1.170.0000.00918.57
8.1.160.0040.00418.96
8.1.150.0040.00420.67
8.1.140.0040.00419.53
8.1.130.0070.00018.88
8.1.120.0040.00717.39
8.1.110.0040.00417.36
8.1.100.0000.00817.46
8.1.90.0040.00317.49
8.1.80.0030.00317.38
8.1.70.0030.00317.45
8.1.60.0060.00317.52
8.1.50.0020.00517.49
8.1.40.0000.00817.46
8.1.30.0040.00417.55
8.1.20.0040.00417.64
8.1.10.0040.00417.59
8.1.00.0060.00317.54
8.0.300.0040.00419.95
8.0.290.0000.00816.75
8.0.280.0030.00318.47
8.0.270.0030.00317.17
8.0.260.0030.00316.78
8.0.250.0030.00316.82
8.0.240.0040.00416.77
8.0.230.0070.00316.88
8.0.220.0000.00716.80
8.0.210.0070.00016.78
8.0.200.0060.00016.94
8.0.190.0030.00516.94
8.0.180.0050.00316.89
8.0.170.0070.00016.91
8.0.160.0040.00716.85
8.0.150.0030.00516.84
8.0.140.0000.00716.81
8.0.130.0040.00413.25
8.0.120.0000.00816.76
8.0.110.0080.00016.90
8.0.100.0040.00416.90
8.0.90.0030.00516.93
8.0.80.0070.00816.86
8.0.70.0000.00716.91
8.0.60.0070.00017.00
8.0.50.0070.00016.95
8.0.30.0070.01217.04
8.0.20.0090.01017.40
8.0.10.0000.00717.00
8.0.00.0060.01116.88
7.4.330.0060.00015.55
7.4.320.0000.00616.52
7.4.300.0060.00016.48
7.4.290.0030.00716.42
7.4.280.0030.00616.63
7.4.270.0030.00316.45
7.4.260.0000.00816.54
7.4.250.0000.00716.40
7.4.240.0030.00316.61
7.4.230.0030.00316.64
7.4.220.0030.01716.37
7.4.210.0120.00316.47
7.4.200.0000.00816.53
7.4.160.0090.00916.52
7.4.150.0120.00617.40
7.4.140.0130.00417.86
7.4.130.0070.01316.45
7.4.120.0110.01016.52
7.4.110.0110.00716.64
7.4.100.0110.00716.59
7.4.90.0120.00416.69
7.4.80.0160.00319.39
7.4.70.0130.00316.57
7.4.60.0120.01216.52
7.4.50.0030.01316.38
7.4.40.0060.01216.62
7.4.30.0150.00616.45
7.4.00.0080.00815.09
7.3.330.0000.00513.31
7.3.320.0030.00313.34
7.3.310.0040.00416.36
7.3.300.0030.00316.32
7.3.290.0070.00816.31
7.3.280.0090.00816.29
7.3.270.0110.00817.40
7.3.260.0090.00816.52
7.3.250.0090.01016.40
7.3.240.0100.00816.42
7.3.230.0130.00916.32
7.3.210.0090.00916.34
7.3.200.0040.01216.29
7.3.190.0030.01216.67
7.3.180.0180.00316.39
7.3.170.0040.01116.35
7.3.160.0060.01016.30
7.2.330.0120.00616.67
7.2.320.0110.00716.60
7.2.310.0100.00716.32
7.2.300.0110.00616.43
7.2.290.0060.00916.73
7.2.60.0070.00716.61
7.2.00.0080.00819.46
7.1.200.0070.00415.66
7.1.100.0060.00617.75
7.1.70.0030.00316.97
7.1.60.0330.01733.14
7.1.50.0470.02033.04
7.1.40.0400.01732.44
7.1.30.0370.01332.58
7.1.20.0430.00732.65
7.1.10.0270.01014.61
7.1.00.0300.00314.84
7.0.200.0370.00715.06
7.0.190.0230.01014.69
7.0.180.0300.00714.24
7.0.170.0270.01014.27
7.0.160.0230.01314.40
7.0.150.0400.01014.40
7.0.140.0270.00314.32
7.0.130.0300.00714.58
7.0.120.0270.00714.80
7.0.110.0230.01014.31
7.0.100.0270.00714.54
7.0.90.0500.01014.41
7.0.80.0470.01014.51
7.0.70.0230.01314.61
7.0.60.0770.00314.10
7.0.50.0330.00314.50
7.0.40.0300.01314.52
7.0.30.0370.00314.49
7.0.20.0330.00714.49
7.0.10.0400.01014.62
7.0.00.0330.00714.62

preferences:
48.33 ms | 401 KiB | 5 Q