3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A { function foo(): X; } interface B extends A { function foo(): X; } $x = new class() implements A{ function foo(): X{} }; interface X { function bar(): A; } interface Y extends X { function bar(): A; }

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.70.0110.00716.63
8.3.60.0030.01418.43
8.3.50.0100.00617.28
8.3.40.0070.00718.46
8.3.30.0040.01118.55
8.3.20.0040.00421.76
8.3.10.0040.00423.53
8.3.00.0090.00021.74
8.2.190.0110.00416.75
8.2.180.0120.00316.38
8.2.170.0140.00022.96
8.2.160.0070.00721.99
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0080.00020.57
8.2.120.0040.00426.35
8.2.110.0060.00319.30
8.2.100.0040.00717.84
8.2.90.0000.00719.27
8.2.80.0000.00817.97
8.2.70.0060.00317.50
8.2.60.0000.00817.93
8.2.50.0000.00718.10
8.2.40.0040.00420.64
8.2.30.0000.00719.29
8.2.20.0030.00718.04
8.2.10.0040.00418.05
8.2.00.0040.00417.97
8.1.280.0140.01025.92
8.1.270.0060.01222.14
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00622.74
8.1.230.0080.00317.82
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0000.00817.22
8.1.180.0000.00718.10
8.1.170.0060.00318.65
8.1.160.0000.00718.85
8.1.150.0040.00418.88
8.1.140.0040.00419.05
8.1.130.0000.00717.82
8.1.120.0040.00417.42
8.1.110.0040.00417.42
8.1.100.0050.00317.52
8.1.90.0050.00217.42
8.1.80.0030.00717.40
8.1.70.0000.00717.43
8.1.60.0040.00417.50
8.1.50.0030.00617.52
8.1.40.0040.00417.55
8.1.30.0000.00917.56
8.1.20.0030.00617.59
8.1.10.0070.00017.52
8.1.00.0040.00417.36
8.0.300.0040.00418.77
8.0.290.0110.00016.75
8.0.280.0000.00718.43
8.0.270.0040.00416.81
8.0.260.0060.00017.18
8.0.250.0030.00317.03
8.0.240.0030.00716.91
8.0.230.0040.00416.79
8.0.220.0000.00716.88
8.0.210.0000.00716.84
8.0.200.0090.00016.91
8.0.190.0050.00316.94
8.0.180.0050.00316.92
8.0.170.0000.00916.91
8.0.160.0030.00316.89
8.0.150.0000.00816.82
8.0.140.0000.00816.82
8.0.130.0030.00313.24
8.0.120.0000.00716.88
8.0.110.0070.00016.93
8.0.100.0000.00716.75
8.0.90.0000.00717.00
8.0.80.0070.01016.82
8.0.70.0040.00416.77
8.0.60.0030.00616.93
8.0.50.0040.00416.90
8.0.30.0080.01017.09
8.0.20.0100.01117.40
8.0.10.0040.00417.02
8.0.00.0080.00916.78
7.4.330.0050.00016.74
7.4.320.0060.00016.50
7.4.300.0000.00716.55
7.4.290.0040.00416.59
7.4.280.0060.00316.50
7.4.270.0030.00516.41
7.4.260.0030.00316.38
7.4.250.0000.00616.55
7.4.240.0040.00416.58
7.4.230.0070.00016.45
7.4.220.0080.00016.42
7.4.210.0080.00816.55
7.4.200.0000.00716.67
7.4.160.0080.00916.38
7.4.150.0110.00917.40
7.4.140.0120.00617.86
7.4.130.0180.00716.43
7.4.120.0160.00316.51
7.4.110.0100.00716.32
7.4.100.0110.00516.43
7.4.90.0190.00316.35
7.4.80.0060.01019.39
7.4.70.0030.01716.62
7.4.60.0080.00816.43
7.4.50.0030.00716.36
7.4.40.0030.01316.57
7.4.30.0080.00816.16
7.4.00.0030.00914.70
7.3.330.0050.00313.04
7.3.320.0060.00013.00
7.3.310.0040.00416.22
7.3.300.0000.00716.13
7.3.290.0030.00316.18
7.3.280.0060.00916.17
7.3.270.0100.01017.40
7.3.260.0080.01016.34
7.3.250.0170.01116.28
7.3.240.0140.00716.27
7.3.230.0080.00916.17
7.3.210.0030.01316.12
7.3.200.0100.00716.13
7.3.190.0060.00916.43
7.3.180.0110.00616.25
7.3.170.0100.00716.31
7.3.160.0060.01016.41
7.2.330.0100.01316.54
7.2.320.0090.01116.64
7.2.310.0100.01016.30
7.2.300.0160.00616.36
7.2.290.0130.01016.42
7.2.60.0070.00716.89
7.2.00.0030.01417.47
7.1.200.0040.01115.56
7.1.120.0440.00716.79
7.1.110.0440.00715.79
7.1.100.0410.01115.83
7.1.90.0000.01815.88
7.1.80.0030.01015.66
7.1.70.0030.01115.25
7.1.60.0210.01133.08
7.1.50.0620.01832.54
7.1.40.0590.01632.60
7.1.30.0300.00632.44
7.1.20.0720.01732.49
7.1.10.0650.01314.78
7.1.00.0070.00715.00

preferences:
51.79 ms | 401 KiB | 5 Q