3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface HasMethodReturnIntOrString { public function methodA(): int|string; } interface HasMethodReturnIntOrFloat { public function methodA(): int|float; } // Fatal error: Declaration of HasMethodReturnIntOrString::methodA(): string|int must be compatible with HasMethodReturnIntOrFloat::methodA(): int|float in /in/IUQBd on line 5 interface HasMethodReturnInt extends HasMethodReturnIntOrString, HasMethodReturnIntOrFloat { }

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.60.0170.00318.45
8.3.50.0140.00320.24
8.3.40.0070.00718.89
8.3.30.0120.00318.91
8.3.20.0030.00524.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.180.0060.00925.92
8.2.170.0090.00618.98
8.2.160.0070.00722.96
8.2.150.0030.00625.66
8.2.140.0040.00424.66
8.2.130.0100.00326.16
8.2.120.0040.00420.75
8.2.110.0030.00622.29
8.2.100.0090.00319.45
8.2.90.0050.00318.04
8.2.80.0040.00418.79
8.2.70.0060.00617.25
8.2.60.0080.00017.92
8.2.50.0000.00818.07
8.2.40.0040.00419.88
8.2.30.0020.00518.13
8.2.20.0070.00020.54
8.2.10.0070.00017.99
8.2.00.0040.00419.23
8.1.280.0040.01125.92
8.1.270.0070.00023.99
8.1.260.0070.00426.35
8.1.250.0080.00028.09
8.1.240.0000.00920.14
8.1.230.0080.00417.83
8.1.220.0080.00017.74
8.1.210.0030.00518.77
8.1.200.0030.00717.23
8.1.190.0080.00017.13
8.1.180.0080.00018.10
8.1.170.0040.00418.57
8.1.160.0040.00418.88
8.1.150.0080.00018.52
8.1.140.0000.00717.38
8.1.130.0030.00318.88
8.1.120.0000.01017.39
8.1.110.0060.00317.35
8.1.100.0030.00517.45
8.1.90.0000.00817.41
8.1.80.0000.00917.39
8.1.70.0030.00317.42
8.1.60.0030.00517.41
8.1.50.0060.00617.27
8.1.40.0080.00517.36
8.1.30.0030.01217.58
8.1.20.0210.00317.43
8.1.10.0070.01217.37
8.1.00.0180.00317.12
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0030.00618.31
8.0.270.0000.00716.71
8.0.260.0000.00618.41
8.0.250.0030.00316.91
8.0.240.0000.00716.97
8.0.230.0030.00316.96
8.0.220.0070.00016.88
8.0.210.0000.00716.78
8.0.200.0030.00316.85
8.0.190.0080.00016.83
8.0.180.0140.00816.81
8.0.170.0100.00516.88
8.0.160.0220.00516.77
8.0.150.0190.00816.80
8.0.140.0240.00016.91
8.0.130.0220.00316.93
8.0.120.0150.00316.85
8.0.110.0180.00016.80
8.0.100.0130.00016.91
8.0.90.0070.00716.77
8.0.80.0030.01016.78
8.0.70.0160.00016.89
8.0.60.0170.00016.86
8.0.50.0120.00616.90
8.0.30.0150.00616.79
8.0.20.0120.00516.91
8.0.10.0140.01016.87
7.4.330.0060.00015.55
7.4.320.0000.00616.21
7.4.300.0030.00316.21
7.4.290.0120.00816.33
7.4.280.0210.00616.36
7.4.270.0220.00516.42
7.4.260.0250.00016.33
7.4.250.0150.01016.35
7.4.240.0180.00416.36
7.4.230.0160.00816.36
7.4.220.0130.00416.49
7.4.210.0160.00316.27
7.4.200.0130.00616.45
7.4.190.0140.00516.50
7.4.180.0160.00216.40
7.4.160.0100.00516.34
7.4.150.0060.00916.38
7.4.140.0120.00416.32
7.4.130.0110.00416.05
7.4.120.0070.00716.05
7.4.110.0080.00916.12
7.4.100.0100.00716.32
7.4.90.0140.00016.09
7.4.80.0060.00616.23
7.4.70.0090.00616.03
7.4.60.0040.00816.13
7.4.50.0090.01016.07
7.4.40.0200.00016.11
7.4.30.0220.00316.20
7.4.20.0150.00716.23
7.4.10.0200.00016.23
7.4.00.0110.00316.17

preferences:
51.15 ms | 400 KiB | 5 Q