3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Foo { public function resolveReferences(?string $context = null); } class Bar implements Foo { public function resolveReferences(string $context = null) { } }

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.0130.00817.44
8.4.130.0090.01117.69
8.4.120.0120.00820.28
8.4.110.0060.00618.98
8.4.100.0130.00517.82
8.4.90.0110.01118.00
8.4.80.0060.00217.75
8.4.70.0120.00717.71
8.4.60.0110.01019.47
8.4.50.0060.00218.46
8.4.40.0090.01217.57
8.4.30.0100.00319.00
8.4.20.0060.01921.30
8.4.10.0420.00717.43
8.3.270.0120.00816.30
8.3.260.0100.00616.63
8.3.250.0050.00418.85
8.3.240.0080.01016.41
8.3.230.0120.00716.61
8.3.220.0060.01117.20
8.3.210.0040.00416.45
8.3.200.0120.00716.23
8.3.190.0080.01116.65
8.3.180.0090.00516.70
8.3.170.0120.00618.84
8.3.160.0150.00320.71
8.3.150.0060.01317.12
8.3.140.0360.00816.51
8.3.130.0290.00316.28
8.3.120.0170.00916.82
8.3.110.0250.00716.40
8.3.100.0260.01216.28
8.3.90.0330.00516.36
8.3.80.0250.01016.53
8.3.70.0280.00616.38
8.3.60.0270.00716.44
8.3.50.0250.00616.59
8.3.40.0210.00417.36
8.3.30.0220.00317.23
8.3.20.0210.00617.08
8.3.10.0180.00717.31
8.3.00.0140.00717.36
8.2.290.0080.01120.24
8.2.280.0150.00418.08
8.2.270.0150.00416.21
8.2.260.0310.00616.40
8.2.250.0270.01016.20
8.2.240.0300.00616.31
8.2.230.0340.00416.15
8.2.220.0330.00616.34
8.2.210.0320.00716.22
8.2.200.0290.00816.20
8.2.190.0290.00916.29
8.2.180.0310.00616.15
8.2.170.0350.00517.52
8.2.160.0350.00717.55
8.2.150.0320.00817.36
8.2.140.0300.00817.37
8.2.130.0380.00617.32
8.2.120.0290.01317.41
8.2.110.0310.00817.39
8.2.100.0290.00917.41
8.2.90.0260.01017.32
8.2.80.0310.00617.41
8.2.70.0310.00617.24
8.2.60.0210.01517.33
8.2.50.0270.00817.29
8.2.40.0250.00717.40
8.2.30.0290.00717.43
8.2.20.0310.00617.29
8.2.10.0330.00417.31
8.2.00.0290.00517.35
8.1.320.0070.00316.05

preferences:
28.43 ms | 403 KiB | 5 Q