3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SomeParent { public function foo(): static { return $this; } } final class SomeChild extends SomeParent { public function foo(): SomeChild { return $this; } } var_dump((new SomeChild())->foo());

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.4.80.0200.00717.66
8.4.70.0180.00717.81
8.4.60.0400.00817.57
8.4.50.0420.00917.61
8.4.40.0440.00917.47
8.4.30.0420.01017.28
8.4.20.0360.00817.28
8.4.10.0460.00617.34
8.3.220.0170.00816.97
8.3.210.0200.00516.97
8.3.200.0380.00916.97
8.3.190.0360.01016.97
8.3.180.0340.00716.97
8.3.170.0260.00616.97
8.3.160.0190.00616.97
8.3.150.0280.00716.97
8.3.140.0280.00416.97
8.3.130.0190.00616.97
8.3.120.0170.00416.97
8.3.110.0280.00416.97
8.3.100.0200.00516.97
8.3.90.0250.00416.97
8.3.80.0320.00616.97
8.3.70.0230.00516.97
8.3.60.0310.00616.97
8.3.50.0360.00616.97
8.3.40.0350.00617.43
8.3.30.0230.00417.20
8.3.20.0310.01117.33
8.3.10.0290.00617.18
8.3.00.0290.00417.29
8.2.280.0260.00616.97
8.2.270.0270.00716.97
8.2.260.0330.00916.97
8.2.250.0390.00816.97
8.2.240.0410.00716.97
8.2.230.0360.00616.97
8.2.220.0330.00816.97
8.2.210.0320.00816.97
8.2.200.0310.01116.97
8.2.190.0310.00816.97
8.2.180.0330.00716.97
8.2.170.0390.00717.62
8.2.160.0360.00917.56
8.2.150.0370.00717.47
8.2.140.0320.00717.35
8.2.130.0370.00717.31
8.2.120.0330.00617.40
8.2.110.0390.00717.43
8.2.100.0330.00617.42
8.2.90.0260.00617.59
8.2.80.0220.00817.41
8.2.70.0330.00817.32
8.2.60.0320.00817.31
8.2.50.0330.00817.30
8.2.40.0340.00617.43
8.2.30.0330.00517.22
8.2.20.0240.00617.46
8.2.10.0350.00517.31
8.2.00.0300.00517.35

preferences:
147.24 ms | 995 KiB | 7 Q