3v4l.org

run code in 500+ PHP versions simultaneously
<?php class SomeParent { public function test(): static { return $this; } } final class SomeChild extends SomeParent { } $obj = new SomeChild(); var_dump($obj->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.5.30.0120.00619.30
8.5.20.0070.01018.65
8.5.10.0120.00716.70
8.5.00.0120.01120.05
8.4.180.0130.00825.51
8.4.170.0110.00923.79
8.4.160.0130.00923.63
8.4.150.0070.00516.84
8.4.140.0130.00917.58
8.4.130.0130.00817.46
8.4.120.0130.00722.36
8.4.110.0140.00519.00
8.4.100.0050.00717.46
8.4.90.0080.00322.59
8.4.80.0090.00517.86
8.4.70.0080.00717.97
8.4.60.0080.01118.78
8.4.50.0090.01318.97
8.4.40.0200.00017.73
8.4.30.0120.00922.50
8.4.20.0100.00017.87
8.4.10.0100.00019.22
8.3.300.0140.00720.49
8.3.290.0100.01120.71
8.3.280.0120.00718.10
8.3.270.0130.00616.48
8.3.260.0120.00716.60
8.3.250.0150.00418.55
8.3.240.0100.00816.41
8.3.230.0060.00316.40
8.3.220.0050.00417.14
8.3.210.0140.00416.65
8.3.200.0080.00116.48
8.3.190.0130.00319.01
8.3.180.0110.00718.43
8.3.170.0000.00917.38
8.3.160.0070.01020.35
8.3.150.0000.00916.85
8.3.140.0080.00017.02
8.3.130.0050.00318.38
8.3.120.0090.00018.90
8.3.110.0080.00020.94
8.3.100.0030.00616.49
8.3.90.0060.01226.77
8.3.80.0060.00317.97
8.3.70.0070.00716.50
8.3.60.0120.00916.38
8.3.50.0110.00716.32
8.3.40.0100.01021.89
8.3.30.0040.01219.04
8.3.20.0040.00424.18
8.3.10.0050.00224.66
8.3.00.0080.00026.16
8.2.300.0130.01117.93
8.2.290.0140.00620.43
8.2.280.0100.01018.42
8.2.270.0160.00317.22
8.2.260.0090.00616.47
8.2.250.0030.00616.71
8.2.240.0080.00017.24
8.2.230.0060.00322.58
8.2.220.0030.00624.06
8.2.210.0110.00726.77
8.2.200.0040.00416.50
8.2.190.0070.00716.58
8.2.180.0150.00616.63
8.2.170.0130.00618.96
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0000.00826.16
8.2.120.0030.00619.66
8.2.110.0100.00020.56
8.2.100.0050.00520.61
8.1.340.0120.00819.81
8.1.330.0050.00221.77
8.1.320.0100.01016.09
8.1.310.0080.00018.57
8.1.300.0040.01217.75
8.1.290.0060.00330.84
8.1.280.0090.00625.92
8.1.270.0080.00024.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0070.00320.20
8.1.230.0060.00318.36
8.0.290.0070.00617.42
7.4.110.0140.00317.42
7.2.200.0160.00017.55
7.1.40.0100.00517.42
7.0.330.0040.00717.42

preferences:
49.19 ms | 863 KiB | 5 Q