3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface OldInterface { public function foo(); } interface NewInterface { public function foo(): mixed; } final class MyClass implements OldInterface, NewInterface { public function foo(): mixed { return null; } } $c = new MyClass(); $c->foo();

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.3.60.0090.00916.50
8.3.50.0060.01120.13
8.3.40.0100.00722.00
8.3.30.0070.00718.73
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0000.00726.16
8.2.180.0080.00825.92
8.2.170.0160.00018.88
8.2.160.0030.01022.96
8.2.150.0000.00725.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00421.12
8.2.110.0070.01020.56
8.2.100.0040.00717.78
8.2.90.0050.00317.63
8.2.80.0000.00818.69
8.2.70.0030.00517.38
8.2.60.0000.00817.50
8.2.50.0000.00818.04
8.2.40.0040.00418.09
8.2.30.0000.00718.05
8.2.20.0040.00422.14
8.2.10.0000.00717.93
8.2.00.0060.00319.30
8.1.280.0110.00425.92
8.1.270.0090.00023.99
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0050.00523.53
8.1.230.0090.00320.85
8.1.220.0040.00418.55
8.1.210.0030.00518.77
8.1.200.0090.00017.13
8.1.190.0000.00917.23
8.1.180.0090.00018.10
8.1.170.0000.00917.62
8.1.160.0040.00418.86
8.1.150.0040.00418.73
8.1.140.0040.00417.47
8.1.130.0060.00018.82
8.1.120.0030.00317.37
8.1.110.0030.00517.50
8.1.100.0030.00417.41
8.1.90.0000.00717.46
8.1.80.0070.00717.41
8.1.70.0000.01517.40
8.1.60.0140.00517.55
8.1.50.0180.00017.50
8.1.40.0090.00917.52
8.1.30.0110.00817.54
8.1.20.0180.00017.50
8.1.10.0100.00717.36
8.1.00.0110.00617.29
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0040.00418.45
8.0.270.0070.00016.85
8.0.260.0030.00318.32
8.0.250.0030.00316.96
8.0.240.0000.00816.84
8.0.230.0000.00716.85
8.0.220.0070.00016.91
8.0.210.0050.00316.83
8.0.200.0100.00416.84
8.0.190.0000.01416.88
8.0.180.0150.00016.84
8.0.170.0050.00916.88
8.0.160.0150.00016.83
8.0.150.0150.00016.69
8.0.140.0090.00616.85
8.0.130.0150.00016.85
8.0.120.0040.00816.88
8.0.110.0080.00316.73
8.0.100.0080.00416.77
8.0.90.0070.00716.73
8.0.80.0120.00016.82
8.0.70.0100.00316.70
8.0.60.0130.00316.84
8.0.50.0090.00816.87
8.0.30.0050.01116.87
8.0.20.0090.00616.96
8.0.10.0110.00616.90
7.4.330.0000.00515.55
7.4.320.0000.00616.65
7.4.300.0090.00916.47
7.4.290.0090.00316.61
7.4.280.0110.00016.46
7.4.270.0120.00016.44
7.4.260.0130.00416.50
7.4.250.0040.00916.54
7.4.240.0080.00316.57
7.4.230.0120.00316.55
7.4.220.0000.00916.54
7.4.210.0070.00716.57
7.4.200.0120.00416.44
7.4.190.0110.00416.57
7.4.180.0120.00316.53
7.4.160.0080.00816.59
7.4.150.0090.00616.42
7.4.140.0130.00016.52
7.4.130.0070.00216.41
7.4.120.0090.00616.45
7.4.110.0080.00716.47
7.4.100.0140.00016.29
7.4.90.0140.00016.30
7.4.80.0090.00616.40
7.4.70.0040.00716.53
7.4.60.0070.00516.45
7.4.50.0100.00016.41
7.4.40.0060.00316.23
7.4.30.0050.00516.30
7.4.20.0030.00716.33
7.4.10.0130.00016.36
7.4.00.0030.00716.49

preferences:
55.01 ms | 401 KiB | 5 Q