3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected const foo = 'foo'; public function doIt() { var_dump(self::foo); var_dump(static::foo); } } class B extends A { protected const foo = 'bar'; } (new B())->doIt();

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.5.30.0110.00718.01
8.5.20.0140.00820.28
8.5.10.0110.00716.68
8.5.00.0160.00919.70
8.4.180.0120.01319.80
8.4.170.0150.00623.85
8.4.160.0110.01023.70
8.4.150.0070.00516.82
8.4.140.0100.01017.65
8.4.130.0110.00920.54
8.4.120.0120.00720.88
8.4.110.0120.00918.86
8.4.100.0090.01117.48
8.4.90.0040.00517.64
8.4.80.0220.00617.66
8.4.70.0180.00917.84
8.4.60.0290.00217.65
8.4.50.0360.01217.64
8.4.40.0280.00517.00
8.4.30.0490.00917.02
8.4.20.0380.00517.20
8.4.10.0430.00917.18
8.3.300.0130.00720.77
8.3.290.0100.01120.82
8.3.280.0080.01218.21
8.3.270.0100.01016.64
8.3.260.0130.00316.21
8.3.250.0090.00918.83
8.3.240.0110.00816.47
8.3.230.0110.00816.75
8.3.220.0110.00916.97
8.3.210.0200.00716.97
8.3.200.0290.00616.97
8.3.190.0230.00316.97
8.3.180.0140.00616.97
8.3.170.0180.00716.97
8.3.160.0200.00316.97
8.3.150.0260.00616.97
8.3.140.0240.00416.97
8.3.130.0390.00416.97
8.3.120.0350.01016.97
8.3.110.0370.00716.97
8.3.100.0390.00816.97
8.3.90.0410.01016.97
8.3.80.0360.01016.97
8.3.70.0420.00916.97
8.3.60.0400.00516.97
8.3.50.0290.00616.97
8.3.40.0420.00817.43
8.3.30.0290.01117.23
8.3.20.0340.01117.31
8.3.10.0330.00617.05
8.3.00.0200.00717.55
8.2.300.0140.00718.69
8.2.290.0140.00618.90
8.2.280.0370.00516.97
8.2.270.0320.01116.97
8.2.260.0370.00516.97
8.2.250.0390.00816.97
8.2.240.0390.00516.97
8.2.230.0400.00616.97
8.2.220.0370.00516.97
8.2.210.0320.00616.97
8.2.200.0290.00816.97
8.2.190.0300.00616.97
8.2.180.0270.01016.97
8.2.170.0330.01217.39
8.2.160.0350.01017.64
8.2.150.0370.00817.46
8.2.140.0370.00317.43
8.2.130.0350.01017.43
8.2.120.0340.01217.41
8.2.110.0390.00617.59
8.2.100.0390.00517.58
8.2.90.0350.00917.54
8.2.80.0380.00617.38
8.2.70.0370.00617.46
8.2.60.0310.00917.35
8.2.50.0370.00617.12
8.2.40.0320.01017.56
8.2.30.0340.00817.57
8.2.20.0250.00517.24
8.2.10.0320.00917.00
8.2.00.0320.00917.23
8.1.340.0140.00621.61

preferences:
29.79 ms | 834 KiB | 5 Q