3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base { public function myMethod():SomeClass { } } class Subclass extends Base { public function myMethod() { } } class SomeClass {}

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.30.0200.01222.96
8.3.20.0150.00523.60
8.3.10.0130.00523.66
8.3.00.0130.01022.96
8.2.160.0230.00622.96
8.2.150.0140.01222.96
8.2.140.0080.01022.96
8.2.130.0080.01022.96
8.2.120.0130.00822.96
8.2.110.0140.00322.96
8.2.100.0160.00722.96
8.2.90.0140.00722.96
8.2.80.0160.00422.96
8.2.70.0120.00841.75
8.2.60.0150.00441.75
8.2.50.0160.00541.75
8.2.40.0130.00741.75
8.2.30.0130.00541.75
8.2.20.0140.00441.75
8.2.10.0100.00741.75
8.2.00.0140.00441.75
8.1.270.0160.00423.88
8.1.260.0070.01323.73
8.1.250.0090.01023.89
8.1.240.0150.01022.96
8.1.230.0190.00722.96
8.1.220.0130.00522.96
8.1.210.0170.00522.96
8.1.200.0160.00941.75
8.1.190.0100.01041.75
8.1.180.0080.00841.75
8.1.170.0110.00641.75
8.1.160.0080.00941.75
8.1.150.0100.00641.75
8.1.140.0100.00741.75
8.1.130.0130.00341.75
8.1.120.0160.00141.75
8.1.110.0110.00741.75
8.1.100.0140.00341.75
8.1.90.0080.00741.75
8.1.80.0100.00641.75
8.1.70.0100.00541.75
8.1.60.0090.00741.75
8.1.50.0130.00241.75
8.1.40.0090.00741.75
8.1.30.0070.00941.75
8.1.20.0140.00241.75
8.1.10.0140.00641.75
8.1.00.0160.00541.75
8.0.300.0100.00422.96
8.0.290.0110.00541.75
8.0.280.0130.00541.75
8.0.270.0080.00841.75
8.0.260.0110.00641.75
8.0.250.0130.00441.75
8.0.240.0130.00541.75
8.0.230.0120.00541.75
8.0.220.0060.01041.75
8.0.210.0160.00441.75
8.0.200.0140.00841.75
8.0.190.0140.00541.75
8.0.180.0150.00341.75
8.0.170.0140.00741.75
8.0.160.0080.00941.75
8.0.150.0140.00841.75
8.0.140.0160.00441.75
8.0.130.0120.00641.75
8.0.120.0120.00641.75
8.0.110.0150.00541.75
8.0.100.0140.00541.75
8.0.90.0140.00641.75
8.0.80.0170.00441.75
8.0.70.0100.00541.75
8.0.60.0160.00241.75
8.0.50.0170.00541.75
8.0.30.0080.01041.75
8.0.20.0110.00641.75
8.0.10.0140.00641.75

preferences:
139.87 ms | 1432 KiB | 7 Q