3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FooInterface { const BAR = ''; } abstract class AbstractFoo implements FooInterface { } class Foo extends AbstractFoo { const BAR = 'BAR'; } $baz = new Foo; var_dump($baz::BAR);

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.1.60.0040.00417.57
8.1.50.0030.00617.40
8.1.40.0070.00417.49
8.1.30.0080.00017.56
8.1.20.0040.00417.55
8.1.10.0000.00817.57
8.1.00.0060.00317.55
8.0.190.0040.00416.89
8.0.180.0000.00716.93
8.0.170.0000.00916.78
8.0.160.0030.00316.90
8.0.150.0030.00316.89
8.0.140.0030.00616.77
8.0.130.0040.00413.39
8.0.120.0080.00016.78
8.0.110.0060.00616.79
8.0.100.0040.00416.94
8.0.90.0000.00716.70
8.0.80.0130.00916.90
8.0.70.0000.00716.79
8.0.60.0040.00416.68
8.0.50.0040.00416.94
8.0.30.0070.00916.97
8.0.20.0130.00817.40
8.0.10.0070.00016.98
8.0.00.0130.00416.79
7.4.290.0100.00016.62
7.4.280.0030.00516.55
7.4.270.0070.00016.57
7.4.260.0030.00316.54
7.4.250.0070.00016.56
7.4.240.0040.00416.46
7.4.230.0030.00316.61
7.4.220.0030.00416.58
7.4.210.0150.00016.66
7.4.200.0000.00716.24
7.4.160.0050.01016.42
7.4.140.0100.01117.86
7.4.130.0150.00816.58
7.4.120.0090.01016.43
7.4.110.0060.01016.38
7.4.100.0030.01716.52
7.4.90.0070.01016.39
7.4.80.0090.01019.39
7.4.70.0130.00616.33
7.4.60.0070.01416.31
7.4.50.0060.00916.60
7.4.40.0100.00716.50
7.4.00.0030.00714.85
7.3.330.0060.00013.29
7.3.320.0060.00013.36
7.3.310.0030.00316.19
7.3.300.0030.00316.17
7.3.290.0080.01116.31
7.3.280.0080.01016.25
7.3.260.0070.01416.51
7.3.240.0120.00716.42
7.3.230.0100.00616.36
7.3.210.0130.00316.21
7.3.200.0130.00316.29
7.3.190.0030.01816.53
7.3.180.0100.00716.27
7.3.170.0090.00916.36
7.3.160.0130.00716.64
7.2.330.0060.01216.78
7.2.320.0110.00816.67
7.2.310.0090.01316.40
7.2.300.0100.01316.40
7.2.290.0040.01316.59
7.2.60.0000.01216.70
7.2.30.0110.01019.68
7.2.20.0130.00719.92
7.2.10.0090.01719.47
7.2.00.0040.01419.59
7.1.200.0160.00515.65
7.1.150.0090.00918.55
7.1.140.0090.00818.22
7.1.130.0110.01018.37
7.1.120.0050.01118.72
7.1.110.0140.00518.11
7.1.100.0090.00818.11
7.1.90.0060.01017.95
7.1.80.0090.01417.96
7.1.70.0110.01117.18
7.1.60.0380.01235.07
7.1.50.0340.01634.78
7.1.40.0330.01534.37
7.1.30.0280.01934.26
7.1.20.0270.01534.55
7.1.10.0100.01516.58
7.1.00.0100.00816.55

preferences:
12.55 ms | 406 KiB | 5 Q