3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Normal constructor abstract class x { function __construct($a) {} } class y extends x { // OK function __construct($b, $c) {} } // abstract constructor abstract class x2 { abstract function __construct($a); } class y2 extends x2 { // KO function __construct($b, $c) {} } // With interface interface i3 { abstract function __construct($a); } class y3 implements i3 { // KO function __construct($b, $c) {} }

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.80.0340.00618.60
8.4.70.0410.00917.91
8.4.60.0340.01117.68
8.4.50.0340.00117.70
8.4.40.0270.00417.22
8.4.30.0270.00417.53
8.4.20.0400.00917.73
8.4.10.0400.01217.65
8.3.220.0310.00718.79
8.3.210.0310.00716.89
8.3.200.0350.00616.89
8.3.190.0190.00516.89
8.3.180.0170.00416.89
8.3.170.0370.00316.89
8.3.160.0190.00616.89
8.3.150.0200.00316.89
8.3.140.0190.00416.89
8.3.130.0180.00716.89
8.3.120.0310.01116.89
8.3.110.0160.00416.89
8.3.100.0220.00716.89
8.3.90.0400.01016.89
8.3.80.0380.00716.89
8.3.70.0180.00416.89
8.3.60.0410.00516.89
8.3.50.0420.00716.89
8.3.40.0410.00917.16
8.3.30.0290.01217.24
8.3.20.0310.00917.14
8.3.10.0310.00917.36
8.3.00.0270.00517.42
8.2.280.0280.00616.89
8.2.270.0170.00216.89
8.2.260.0290.00816.89
8.2.250.0340.01016.89
8.2.240.0370.00616.89
8.2.230.0360.00716.89
8.2.220.0340.00916.89
8.2.210.0350.00816.89
8.2.200.0270.00516.89
8.2.190.0330.00916.89
8.2.180.0380.00916.89
8.2.170.0170.00517.68
8.2.160.0230.00517.51
8.2.150.0400.00717.50
8.2.140.0340.00917.26
8.2.130.0370.00817.41
8.2.120.0340.01017.35
8.2.110.0370.00817.36
8.2.100.0310.00817.43
8.2.90.0320.00817.43
8.2.80.0230.00617.20
8.2.70.0340.01017.34
8.2.60.0400.00517.34
8.2.50.0380.00617.27
8.2.40.0320.00817.32
8.2.30.0330.00817.30
8.2.20.0340.00517.42
8.2.10.0410.00317.34
8.2.00.0300.00617.27

preferences:
154.78 ms | 1344 KiB | 7 Q