3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Point { final public function foo(): string { return 'foo'; } } final class PointChildren extends Point { public function foo(): string { return 'children'; } } $children = new PointChildren(); $children->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.50.0120.00716.70
8.1.30.0040.00417.41
8.1.20.0090.00917.55
8.1.10.0160.00417.25
8.1.00.0130.00717.28
8.0.160.0150.00416.77
8.0.150.0170.00316.61
8.0.140.0180.00016.59
8.0.130.0160.00316.75
8.0.120.0140.00516.68
8.0.110.0150.00316.71
8.0.100.0130.00516.78
8.0.90.0130.00516.66
8.0.80.0120.00816.77
8.0.70.0170.00316.62
8.0.60.0190.00016.68
8.0.50.0110.00816.66
8.0.30.0210.00016.68
8.0.20.0210.00016.77
8.0.10.0160.00316.90
7.4.280.0070.00416.37
7.4.270.0180.00416.34
7.4.260.0180.00316.50
7.4.250.0160.00216.33
7.4.240.0100.00716.26
7.4.230.0110.00316.38
7.4.220.0130.00416.33
7.4.210.0140.00016.25
7.4.200.0080.00316.38
7.4.190.0120.00316.47
7.4.180.0140.00316.43
7.4.160.0160.00016.42
7.4.150.0150.00416.36
7.4.140.0110.00816.21
7.4.130.0170.00316.34
7.4.120.0110.00816.18
7.4.110.0160.00316.21
7.4.100.0030.01716.22
7.4.90.0190.00016.22
7.4.80.0140.00516.18
7.4.70.0160.00316.22
7.4.60.0200.00016.25
7.4.50.0090.00916.16
7.4.40.0050.00516.12
7.4.30.0160.00416.20
7.4.20.0140.00316.18
7.4.10.0120.00416.21
7.4.00.0090.00616.32

preferences:
56.21 ms | 684 KiB | 4 Q