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.5.00.0140.00719.95
8.4.150.0030.00014.05
8.4.140.0120.01017.54
8.4.130.0110.01017.39
8.4.120.0070.00220.69
8.4.110.0120.00822.57
8.4.100.0110.00717.50
8.4.90.0110.00918.38
8.4.80.0150.00617.79
8.4.70.0120.00817.85
8.4.60.0030.00518.92
8.4.50.0060.00317.54
8.4.40.0060.01224.07
8.4.30.0080.00620.49
8.4.20.0070.01120.72
8.4.10.0170.00023.75
8.3.280.0090.01018.26
8.3.270.0080.01116.80
8.3.260.0070.00116.73
8.3.250.0100.00818.72
8.3.240.0050.00316.73
8.3.230.0100.00916.68
8.3.220.0100.00917.16
8.3.210.0120.00918.22
8.3.200.0060.00316.81
8.3.190.0150.00516.95
8.3.180.0080.00716.50
8.3.170.0030.00618.97
8.3.160.0130.00318.98
8.3.150.0090.00917.21
8.3.140.0130.00620.84
8.3.130.0060.00918.36
8.3.120.0030.01619.11
8.3.110.0040.00420.94
8.3.100.0040.00418.55
8.3.90.0060.00326.77
8.3.80.0000.00918.18
8.3.70.0110.00716.38
8.3.60.0070.00716.37
8.3.50.0200.00018.50
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.290.0130.00620.66
8.2.280.0130.00718.14
8.2.270.0000.00818.37
8.2.260.0040.00416.54
8.2.250.0060.00318.22
8.2.240.0080.00024.23
8.2.230.0060.00322.58
8.2.220.0060.00324.06
8.2.210.0000.00826.77
8.2.200.0110.00016.38
8.2.190.0120.00316.63
8.2.180.0100.01016.38
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.330.0120.00821.55
8.1.320.0110.00917.81
8.1.310.0140.00316.63
8.1.300.0040.00417.73
8.1.290.0040.00430.84
8.1.280.0040.01425.92
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:
28.23 ms | 403 KiB | 5 Q