3v4l.org

run code in 500+ PHP versions simultaneously
<?php class SomeParent { public function test(): self { 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.0080.00919.61
8.5.20.0090.00818.42
8.5.10.0080.01016.82
8.5.00.0130.01020.07
8.4.180.0130.00821.28
8.4.170.0120.00923.84
8.4.160.0090.01122.71
8.4.150.0080.00416.90
8.4.140.0100.01017.58
8.4.130.0110.00917.90
8.4.120.0120.00820.24
8.4.110.0090.01122.23
8.4.100.0120.00817.80
8.4.90.0110.01018.71
8.4.80.0140.00517.71
8.4.70.0060.00318.00
8.4.60.0110.00718.82
8.4.50.0030.00520.45
8.4.40.0100.01017.66
8.4.30.0150.00722.29
8.4.20.0060.01617.55
8.4.10.0030.00619.43
8.3.300.0120.00819.06
8.3.290.0090.01320.73
8.3.280.0100.00918.20
8.3.270.0070.01316.66
8.3.260.0070.01116.64
8.3.250.0120.00718.68
8.3.240.0110.00616.54
8.3.230.0070.00316.49
8.3.220.0100.00917.36
8.3.210.0120.00716.68
8.3.200.0060.00316.56
8.3.190.0070.01017.03
8.3.180.0080.00916.58
8.3.170.0150.00318.75
8.3.160.0060.01317.27
8.3.150.0190.00017.42
8.3.140.0090.00916.41
8.3.130.0100.00618.30
8.3.120.0040.00419.05
8.3.110.0060.00920.94
8.3.100.0060.00316.35
8.3.90.0000.00826.77
8.3.80.0030.00618.26
8.3.70.0170.00316.63
8.3.60.0180.00416.50
8.3.50.0140.00318.36
8.3.40.0150.00421.65
8.3.30.0070.01018.86
8.3.20.0050.00224.18
8.3.10.0000.00824.66
8.3.00.0000.00826.16
8.2.300.0120.00820.13
8.2.290.0040.00420.60
8.2.280.0090.00618.46
8.2.270.0090.00918.85
8.2.260.0070.01118.14
8.2.250.0130.00316.40
8.2.240.0000.00917.24
8.2.230.0000.00822.58
8.2.220.0000.00824.06
8.2.210.0040.00426.77
8.2.200.0060.00316.63
8.2.190.0110.00616.58
8.2.180.0060.01216.75
8.2.170.0160.00318.82
8.2.160.0100.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0070.00021.19
8.2.110.0030.00722.24
8.2.100.0080.00319.57
8.2.90.0230.00317.50
8.2.80.0280.00417.42
8.2.70.0240.00817.42
8.2.60.0270.00317.42
8.2.50.0270.00417.42
8.2.40.0250.00317.42
8.2.30.0250.00317.62
8.2.20.0140.00017.63
8.2.10.0240.00317.42
8.2.00.0170.01017.42
8.1.340.0080.01317.59
8.1.330.0130.00522.02
8.1.320.0100.01116.29
8.1.310.0100.00718.36
8.1.300.0120.00616.79
8.1.290.0090.00030.84
8.1.280.0040.01125.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00322.12
8.1.230.0150.01117.42
8.1.220.0270.00017.42
8.1.210.0220.00517.42
8.1.200.0110.01717.42
8.1.190.0210.00517.42
8.1.180.0230.00417.42
8.1.170.0200.00717.42
8.1.160.0210.00617.42
8.1.150.0210.00617.42
8.1.140.0200.00817.42
8.1.130.0250.00317.42
8.1.120.0180.00917.42
8.1.110.0260.00317.42
8.1.100.0230.00517.42
8.1.90.0230.00417.42
8.1.80.0210.00717.42
8.1.70.0080.02117.42
8.1.60.0190.00719.12
8.1.50.0160.01217.42
8.1.40.0290.00017.42
8.1.30.0240.00417.42
8.1.20.0210.00719.05
8.1.10.0260.00017.42
8.1.00.0290.00417.42
8.0.300.0070.00717.42
8.0.290.0240.00517.42
8.0.280.0160.01317.42
8.0.270.0250.00317.42
8.0.260.0210.00517.42
8.0.250.0230.00517.42
8.0.240.0180.00917.42
8.0.230.0230.00517.42
8.0.220.0210.00817.42
8.0.210.0210.00517.42
8.0.200.0210.00817.42
8.0.190.0240.00317.42
8.0.180.0250.00317.42
8.0.170.0250.00617.42
8.0.160.0050.01117.42
8.0.150.0150.00317.42
8.0.140.0070.00718.61
8.0.130.0230.00017.42
8.0.120.0230.00317.42
8.0.110.0190.00917.42
8.0.100.0290.00017.42
8.0.90.0230.00717.42
8.0.80.0290.00017.42
8.0.70.0240.00317.42
8.0.60.0230.00817.42
8.0.50.0090.00617.42
8.0.30.0080.00417.42
8.0.20.0170.00717.42
8.0.10.0030.01018.74
7.0.330.0110.00617.42

preferences:
49.47 ms | 1104 KiB | 5 Q