3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Constr { abstract public function __construct(string $a); abstract public function method(string $b): void; } class Foo extends Constr { public function __construct(string $a) { } public function method(string $b): void { } } class Bar extends Constr { public function __construct() { } public function method(string $b): void { } } new Foo("a"); new Bar();

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.40.0390.01117.84
8.4.30.0400.00717.56
8.4.20.0450.00317.48
8.4.10.0380.01017.18
8.3.170.0360.01016.50
8.3.160.0430.00316.40
8.3.150.0330.01216.59
8.3.140.0390.00716.57
8.3.130.0270.01516.28
8.3.120.0370.00416.76
8.3.110.0280.01316.44
8.3.100.0250.01816.38
8.3.90.0370.00916.28
8.3.80.0400.00416.16
8.3.70.0460.00016.47
8.3.60.0400.00616.43
8.3.50.0340.01016.68
8.3.40.0260.01217.40
8.3.30.0320.00417.35
8.3.20.0260.01017.37
8.3.10.0340.00317.20
8.3.00.0120.00917.32
8.2.270.0290.00816.42
8.2.260.0270.01116.11
8.2.250.0220.01616.50
8.2.240.0330.00916.14
8.2.230.0310.01216.11
8.2.220.0350.00316.48
8.2.210.0290.01016.45
8.2.200.0350.00416.50
8.2.190.0330.00616.52
8.2.180.0320.00616.58
8.2.170.0350.00717.41
8.2.160.0360.00317.27
8.2.150.0310.01317.21
8.2.140.0370.00917.13
8.2.130.0350.00717.24
8.2.120.0420.00017.24
8.2.110.0350.00617.06
8.2.100.0420.00717.54
8.2.90.0380.00617.39
8.2.80.0340.00017.51
8.2.70.0290.00917.21
8.2.60.0240.01517.49
8.2.50.0340.00417.33
8.2.40.0270.01017.51
8.2.30.0310.00717.44
8.2.20.0260.00817.21
8.2.10.0260.01017.11
8.2.00.0290.00717.22

preferences:
139.73 ms | 995 KiB | 7 Q