3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function doSomething(int $foo = null): void; } class Bar implements Foo { public function doSomething(?int $foo = null): void { } } class ExtendedBar extends Bar { public function doSomething(int $foo = null): void { parent::doSomething($foo); } } interface Foo2 { public function doSomething(?int $foo = null): void; } class Bar2 implements Foo2 { public function doSomething(int $foo = null): void { } }

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.140.0090.01217.65
8.4.130.0140.00617.96
8.4.120.0080.01120.51
8.4.110.0090.01122.59
8.4.100.0110.01017.80
8.4.90.0140.00717.73
8.4.80.0120.01217.35
8.4.70.0210.00817.71
8.4.60.0210.00617.19
8.4.50.0190.00517.67
8.4.40.0290.00517.49
8.4.30.0220.00617.31
8.4.20.0260.00517.46
8.4.10.0210.00717.49
8.3.270.0110.00816.45
8.3.260.0110.00816.70
8.3.250.0110.00818.93
8.3.240.0100.00916.50
8.3.230.0080.01216.42
8.3.220.0080.00616.97
8.3.210.0090.00416.97
8.3.200.0200.00516.97
8.3.190.0290.00418.31
8.3.180.0150.00716.97
8.3.170.0190.00416.97
8.3.160.0210.00216.97
8.3.150.0200.00316.97
8.3.140.0190.00316.97
8.3.130.0340.00516.97
8.3.120.0150.00416.97
8.3.110.0180.00316.97
8.3.100.0230.00516.97
8.3.90.0240.00616.97
8.3.80.0380.00716.97
8.3.70.0190.00616.97
8.3.60.0200.00416.97
8.3.50.0260.00316.97
8.3.40.0320.01217.38
8.3.30.0240.00817.25
8.3.20.0210.00617.51
8.3.10.0260.00917.14
8.3.00.0140.00917.21
8.2.290.0100.00920.45
8.2.280.0360.00716.97
8.2.270.0320.00916.97
8.2.260.0400.00516.97
8.2.250.0320.00816.97
8.2.240.0370.00816.97
8.2.230.0320.00816.97
8.2.220.0140.00716.97
8.2.210.0210.00816.97
8.2.200.0160.00516.97
8.2.190.0140.00516.97
8.2.180.0150.00416.97
8.2.170.0190.00317.63
8.2.160.0170.00317.57
8.2.150.0380.00517.61
8.2.140.0380.00717.40
8.2.130.0520.00817.16
8.2.120.0360.00717.41
8.2.110.0390.00917.24
8.2.100.0190.00317.49
8.2.90.0300.00517.16
8.2.80.0170.00317.32
8.2.70.0180.00517.54
8.2.60.0140.00817.36
8.2.50.0240.00317.48
8.2.40.0150.00417.38
8.2.30.0170.00617.48
8.2.20.0390.00517.52
8.2.10.0310.00617.20
8.2.00.0260.00517.48

preferences:
33.46 ms | 403 KiB | 5 Q