3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I1 { public function fromThing(ThingA $thing): I1; } interface I2 { public function fromThing(ThingB $thing): I2; } class ThingA {} class ThingB {} class Impl implements I1, I2 { public function fromThing(ThingA|ThingB $thing): I1&I2 { return new self(); } } $i = new Impl();

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.30.0090.00820.13
8.5.20.0090.00720.02
8.5.10.0130.00320.18
8.5.00.0150.01119.91
8.4.180.0120.01119.57
8.4.170.0100.01120.51
8.4.160.0130.01123.96
8.4.150.0080.00616.85
8.4.140.0200.00917.45
8.4.130.0110.00818.54
8.4.120.0130.00724.03
8.4.110.0120.00718.70
8.4.100.0090.00518.92
8.4.90.0100.01020.59
8.4.80.0070.00518.68
8.4.70.0150.00619.06
8.4.60.0170.00518.52
8.4.50.0140.00717.33
8.4.40.0130.00719.23
8.4.30.0090.00920.59
8.4.20.0000.00819.44
8.4.10.0090.00020.29
8.3.300.0100.01020.69
8.3.290.0120.01220.84
8.3.280.0130.01018.29
8.3.270.0120.00716.54
8.3.260.0120.00816.31
8.3.250.0120.00718.81
8.3.240.0060.00517.04
8.3.230.0100.01016.41
8.3.220.0060.01218.97
8.3.210.0100.00816.73
8.3.200.0060.00916.37
8.3.190.0080.00717.17
8.3.180.0050.00420.51
8.3.170.0140.00416.71
8.3.160.0110.00816.52
8.3.150.0170.00717.02
8.3.140.0030.00517.13
8.3.130.0130.00318.49
8.3.120.0150.00418.81
8.3.110.0160.00018.29
8.3.100.0160.00318.63
8.3.50.0170.00318.28
8.2.300.0110.01022.11
8.2.290.0110.00720.36
8.2.280.0090.00818.37
8.2.270.0090.00916.76
8.2.260.0070.01016.38
8.2.250.0000.00816.65
8.2.240.0080.00016.98
8.2.230.0160.00318.01
8.2.220.0050.00318.50
8.1.340.0130.00917.48
8.1.330.0110.00822.04
8.1.320.0070.00417.97
8.1.310.0040.01116.34
8.1.300.0000.00818.38
8.1.40.0200.00617.50
8.1.30.0260.00017.63
8.1.20.0230.00317.51
8.1.10.0250.00017.39
8.1.00.0220.00317.33
8.0.170.0080.00016.88
8.0.160.0170.00616.77
8.0.150.0140.00416.75
8.0.140.0080.01116.86
8.0.130.0140.00816.89
8.0.120.0170.00516.84
8.0.110.0190.00016.79
8.0.100.0140.00716.86
8.0.90.0120.00616.82
8.0.80.0200.00316.84
8.0.70.0110.01016.86
8.0.60.0190.00516.69
8.0.50.0210.00316.77
8.0.30.0170.00916.89
8.0.20.0100.00816.76
8.0.10.0160.00616.87
7.4.280.0260.00016.40
7.4.270.0230.00416.43
7.4.260.0180.01116.35
7.4.250.0170.00916.40
7.4.240.0270.00016.49
7.4.230.0240.00016.40
7.4.220.0130.00816.25
7.4.210.0190.00316.36
7.4.200.0150.00816.27
7.4.190.0170.00516.22
7.4.180.0120.00816.46
7.4.160.0060.00616.50
7.4.150.0090.00616.18
7.4.140.0070.00716.18
7.4.130.0150.00016.32
7.4.120.0120.01016.18
7.4.110.0080.00816.15
7.4.100.0150.00016.36
7.4.90.0150.00516.13
7.4.80.0150.01016.19
7.4.70.0090.00616.24
7.4.60.0030.00816.16
7.4.50.0090.00616.06
7.4.40.0140.00716.12
7.4.30.0110.00916.03
7.4.20.0100.00516.07
7.4.10.0120.00416.07
7.4.00.0070.00816.34

preferences:
44.28 ms | 930 KiB | 5 Q