3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { public function phpyh(string $x): iterable; } abstract class A implements I { abstract public function phpyh(int|string $x): array|\Generator; } interface I2 { public function phpyh(float $x, string $y): array; } final class B extends A implements I, I2 { public function phpyh(int|string|float $x, string $y = 'С 8 марта!'): array { return []; } } new B();

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.40.0100.00721.86
8.3.30.0030.01018.54
8.3.20.0060.00324.18
8.3.10.0000.00724.66
8.3.00.0050.00226.16
8.2.170.0090.00618.55
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0000.00819.00
8.2.110.0090.00021.03
8.2.100.0210.00117.68
8.2.90.0190.00219.50
8.2.80.0130.00818.11
8.2.70.0150.00618.05
8.2.60.0150.00618.13
8.2.50.0140.00518.65
8.2.40.0110.00619.03
8.2.30.0110.00417.71
8.2.20.0090.00517.91
8.2.10.0110.00517.67
8.2.00.0110.00517.64
8.1.270.0040.00424.66
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0060.00319.44
8.1.230.0120.00519.69
8.1.220.0130.00618.03
8.1.210.0130.00518.42
8.1.200.0140.00517.86
8.1.190.0130.00717.86
8.1.180.0150.00418.73
8.1.170.0130.00518.74
8.1.160.0100.00517.66
8.1.150.0120.00517.64
8.1.140.0110.00517.64
8.1.130.0110.00517.64
8.1.120.0120.00517.65
8.1.110.0110.00517.64
8.1.100.0110.00517.64
8.1.90.0110.00517.64
8.1.80.0110.00517.65
8.1.70.0120.00517.64
8.1.60.0130.00517.64
8.1.50.0130.00517.64
8.1.40.0120.00617.64
8.1.30.0130.00517.64
8.1.20.0120.00517.64
8.1.10.0120.00617.64
8.1.00.0130.00517.64
8.0.300.0170.00418.17
8.0.290.0140.00417.70
8.0.280.0110.00517.64
8.0.270.0120.00517.64
8.0.260.0120.00417.64
8.0.250.0110.00517.64
8.0.240.0110.00517.64
8.0.230.0110.00517.64
8.0.220.0120.00417.64
8.0.210.0110.00517.64
8.0.200.0110.00517.64
8.0.190.0120.00417.64
8.0.180.0120.00517.64
8.0.170.0120.00417.64
8.0.160.0120.00417.64
8.0.150.0120.00517.64
8.0.140.0120.00517.65
8.0.130.0120.00417.64
8.0.120.0110.00417.64
8.0.110.0110.00517.64
8.0.100.0110.00517.64
8.0.90.0110.00417.64
8.0.80.0110.00517.64
8.0.70.0120.00417.64
8.0.60.0110.00417.64
8.0.50.0110.00517.65
8.0.30.0110.00517.64
8.0.20.0110.00417.64
8.0.10.0110.00417.64

preferences:
44.93 ms | 400 KiB | 5 Q