3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function x($args = []) {} } class B extends A { public function x() {} }

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.1.50.0000.00817.25
8.1.40.0160.01017.37
8.1.30.0220.00717.50
8.1.20.0100.01017.46
8.1.10.0120.00317.24
8.1.00.0140.00917.25
8.0.180.0000.00816.84
8.0.170.0150.00016.86
8.0.160.0080.00516.84
8.0.150.0070.00716.82
8.0.140.0170.00616.63
8.0.130.0170.00516.61
8.0.120.0190.00316.82
8.0.110.0150.00616.74
8.0.100.0240.00016.75
8.0.90.0190.00416.77
8.0.80.0130.00016.84
8.0.70.0100.00416.66
8.0.60.0080.00416.76
8.0.50.0100.00016.79
8.0.30.0190.00016.64
8.0.20.0180.00416.87
8.0.10.0040.00416.90
7.4.290.0230.00016.45
7.4.280.0230.00416.29
7.4.270.0160.00816.26
7.4.260.0200.00316.33
7.4.250.0180.00716.31
7.4.240.0170.00016.41
7.4.230.0100.01016.26
7.4.220.0150.00416.28
7.4.210.0140.00816.35
7.4.200.0210.00016.39
7.4.190.0140.00716.55
7.4.180.0190.00016.35
7.4.160.0110.00616.34
7.4.150.0130.00616.38
7.4.140.0110.00616.41
7.4.130.0100.00716.19
7.4.120.0180.00316.27
7.4.110.0150.00816.15
7.4.100.0140.00816.39
7.4.90.0200.00016.27
7.4.80.0150.00616.15
7.4.70.0150.00416.16
7.4.60.0120.00916.23
7.4.50.0170.00316.17
7.4.40.0160.00416.07
7.4.30.0120.00916.23
7.4.20.0180.00316.15
7.4.10.0190.00216.29
7.4.00.0130.00816.28

preferences:
138.55 ms | 1432 KiB | 7 Q