3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface MyInterface { public function doSomethingAndGetNextStep(): ?MyInterface; } class MyService implements MyInterface { public function doSomethingAndGetNextStep(): null { // do something here, like all other implementations // final one in chain return null; } } $a = new MyService(); var_dump($a->doSomethingAndGetNextStep());

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.120.0120.00822.42
8.4.110.0160.00422.27
8.4.100.0150.00617.45
8.4.90.0110.00817.54
8.4.80.0060.00419.39
8.4.70.0140.00617.73
8.4.60.0050.00617.94
8.4.50.0130.00719.20
8.4.40.0100.01017.53
8.4.30.0110.00720.57
8.4.20.0060.01017.54
8.4.10.0030.00619.51
8.3.250.0080.01019.03
8.3.240.0040.00516.43
8.3.230.0110.00516.48
8.3.220.0050.00316.68
8.3.210.0140.00616.41
8.3.200.0130.00917.15
8.3.190.0110.00816.56
8.3.180.0080.01016.62
8.3.170.0100.00717.09
8.3.160.0160.00318.47
8.3.150.0040.01520.62
8.3.140.0140.00318.54
8.3.130.0090.00016.71
8.3.50.0040.00418.46
8.2.290.0100.00920.65
8.2.280.0120.00718.09
8.2.270.0100.01017.45
8.2.260.0030.00618.30
8.2.250.0030.00618.63
8.2.100.0070.00518.11
8.1.330.0110.00721.80
8.1.320.0140.00817.72
8.1.310.0120.00316.71
8.1.230.0090.00518.96

preferences:
28.16 ms | 403 KiB | 5 Q