3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Test { public function check(Test $x); } //this is ok: class Foo implements Test { public function check(Test $x) {} } //this is fail, but why? Bar implements Test, so.. logically it fulfills contract.. class Bar implements Test { public function check(Foo $x) {} }

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.0140.00418.48
8.3.50.0100.01221.27
8.3.40.0120.00318.89
8.3.30.0030.01020.35
8.3.20.0000.00818.57
8.3.10.0040.00420.88
8.3.00.0000.00819.56
8.2.180.0140.00716.38
8.2.170.0090.00622.96
8.2.160.0070.01020.49
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.01120.96
8.2.110.0000.00920.39
8.2.100.0090.00317.78
8.2.90.0040.00418.84
8.2.80.0070.00019.28
8.2.70.0040.00417.49
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0000.00918.09
8.2.30.0040.00419.55
8.2.20.0050.00217.50
8.2.10.0060.00317.68
8.2.00.0040.00417.54
8.1.280.0120.00325.92
8.1.270.0000.00823.99
8.1.260.0060.01226.35
8.1.250.0070.00028.09
8.1.240.0060.00322.43
8.1.230.0080.00320.96
8.1.220.0040.00418.77
8.1.210.0040.00418.96
8.1.200.0030.00617.35
8.1.190.0040.00417.39
8.1.180.0040.00418.10
8.1.170.0040.00418.55
8.1.160.0070.00018.80
8.1.150.0090.00018.63
8.1.140.0000.00717.43
8.1.130.0040.00417.76
8.1.120.0030.00417.29
8.1.110.0040.00417.41
8.1.100.0000.00717.43
8.1.90.0000.00817.28
8.1.80.0040.00417.37
8.1.70.0000.00717.30
8.1.60.0030.00517.44
8.1.50.0080.00017.30
8.1.40.0030.00517.42
8.1.30.0080.00017.41
8.1.20.0030.00517.55
8.1.10.0080.00017.26
8.1.00.0060.00617.37
8.0.300.0080.00019.98
8.0.290.0040.00417.16
8.0.280.0070.00018.26
8.0.270.0060.00317.11
8.0.260.0030.00316.74
8.0.250.0040.00417.00
8.0.240.0000.00716.88
8.0.230.0000.00816.98
8.0.220.0030.00316.87
8.0.210.0070.00016.88
8.0.200.0030.00316.84
8.0.190.0000.00816.99
8.0.180.0050.00316.92
8.0.170.0030.00516.79
8.0.160.0070.00016.86
8.0.150.0030.00516.88
8.0.140.0020.00516.84
8.0.130.0030.00313.36
8.0.120.0000.00816.78
8.0.110.0050.00216.67
8.0.100.0040.00416.95
8.0.90.0000.00816.87
8.0.80.0060.00916.90
8.0.70.0000.00816.68
8.0.60.0000.00716.68
8.0.50.0030.00516.86
8.0.30.0060.01216.95
8.0.20.0090.01017.40
8.0.10.0000.00717.08
8.0.00.0170.00616.47
7.4.330.0000.00516.66
7.4.320.0000.00616.38
7.4.300.0000.00916.33
7.4.290.0030.00316.43
7.4.280.0000.00716.30
7.4.270.0000.00716.34
7.4.260.0030.00313.19
7.4.250.0000.00716.45
7.4.240.0000.00816.41
7.4.230.0000.00716.28
7.4.220.0130.01016.52
7.4.210.0080.00916.56
7.4.200.0030.00516.52
7.4.190.0070.00016.60
7.4.160.0060.00916.36
7.4.150.0140.01117.40
7.4.140.0100.00917.86
7.4.130.0140.00516.46
7.4.120.0100.00716.44
7.4.110.0090.00916.45
7.4.100.0130.00316.19
7.4.90.0030.01516.25
7.4.80.0070.01719.39
7.4.70.0060.00916.47
7.4.60.0140.00316.68
7.4.50.0000.00516.21
7.4.40.0070.00722.77
7.4.30.0060.01516.53
7.4.10.0100.00715.07
7.4.00.0110.00514.87
7.3.330.0000.00513.07
7.3.320.0050.00013.23
7.3.310.0030.00316.09
7.3.300.0000.00616.18
7.3.290.0070.00716.26
7.3.280.0080.01116.22
7.3.270.0070.01017.40
7.3.260.0110.01018.24
7.3.250.0110.00516.38
7.3.240.0060.01016.39
7.3.230.0030.01316.39
7.3.210.0070.01016.31
7.3.200.0140.00519.39
7.3.190.0100.00716.29
7.3.180.0130.00316.36
7.3.170.0090.00616.43
7.3.160.0080.00816.37
7.3.130.0060.00914.72
7.3.120.0030.01214.63
7.3.110.0040.01514.76
7.3.100.0150.00014.57
7.3.90.0120.00314.80
7.3.80.0070.00414.81
7.3.70.0100.00314.86
7.3.60.0060.00614.81
7.3.50.0060.00914.75
7.3.40.0100.00314.88
7.3.30.0030.00714.79
7.3.20.0090.00616.53
7.3.10.0140.00016.59
7.3.00.0040.01416.61
7.2.330.0160.00816.33
7.2.320.0070.01416.59
7.2.310.0000.01716.64
7.2.300.0110.00516.46
7.2.290.0060.00916.48
7.2.260.0090.00914.98
7.2.250.0070.00714.93
7.2.240.0130.00314.86
7.2.230.0030.01014.74
7.2.220.0070.00715.16
7.2.210.0070.00714.98
7.2.200.0000.01015.02
7.2.190.0060.00614.69
7.2.180.0090.00614.84
7.2.170.0030.00714.92
7.2.160.0060.00615.00
7.2.150.0060.00316.73
7.2.140.0120.00616.81
7.2.130.0070.00716.73
7.2.120.0140.00316.83
7.2.110.0140.00716.43
7.2.100.0040.00816.92
7.2.90.0080.00816.79
7.2.80.0020.01216.58
7.2.70.0070.00716.74
7.2.60.0090.00616.61
7.2.50.0030.01016.80
7.2.40.0110.00316.82
7.2.30.0090.00616.59
7.2.20.0040.01516.61
7.2.10.0040.01116.90
7.2.00.0030.01017.84
7.1.330.0150.00015.89
7.1.320.0000.01215.79
7.1.310.0030.01015.78
7.1.300.0070.00315.71
7.1.290.0000.01215.70
7.1.280.0030.00715.73
7.1.270.0040.00415.46
7.1.260.0070.01015.77
7.1.250.0070.00715.66
7.1.240.0030.01015.60
7.1.230.0140.00715.78
7.1.220.0030.01015.37
7.1.210.0000.01415.41
7.1.200.0070.00715.68
7.1.190.0110.00715.65
7.1.180.0060.00915.75
7.1.170.0030.01015.67
7.1.160.0030.00915.75
7.1.150.0060.01215.71
7.1.140.0070.00715.61
7.1.130.0030.01215.55
7.1.120.0040.01115.39
7.1.110.0000.01515.79
7.1.100.0070.00816.70
7.1.90.0130.00315.63
7.1.80.0070.00715.71
7.1.70.0030.00716.13
7.1.60.0030.01517.45
7.1.50.0080.01116.27
7.1.40.0000.01115.54
7.1.30.0030.00915.68
7.1.20.0090.00615.76
7.1.10.0030.00615.49
7.1.00.0020.02319.10
7.0.330.0030.00915.25
7.0.320.0070.00315.32
7.0.310.0030.01015.04
7.0.300.0080.00815.24
7.0.290.0000.01715.33
7.0.280.0030.01515.25
7.0.270.0060.00615.20
7.0.260.0120.00615.52
7.0.250.0060.00815.30
7.0.240.0100.00715.50
7.0.230.0070.01015.34
7.0.220.0040.00715.21
7.0.210.0030.01115.52
7.0.200.0040.00515.90
7.0.190.0090.00615.37
7.0.180.0070.00615.44
7.0.170.0100.00015.32
7.0.160.0060.00915.47
7.0.150.0030.01215.36
7.0.140.0030.04118.68
7.0.130.0100.00315.35
7.0.120.0040.00415.28
7.0.110.0050.00514.98
7.0.100.0030.01415.29
7.0.90.0060.00915.05
7.0.80.0040.01115.40
7.0.70.0100.00315.14
7.0.60.0060.02817.55
7.0.50.0030.04916.47
7.0.40.0060.02716.75
7.0.30.0180.04316.76
7.0.20.0170.04616.72
7.0.10.0060.03016.87
7.0.00.0100.04016.80
5.6.400.0040.01213.85
5.6.390.0040.00714.09
5.6.380.0030.01014.38
5.6.370.0000.01414.39
5.6.360.0030.01014.08
5.6.350.0030.00613.99
5.6.340.0060.01314.05
5.6.330.0080.00414.04
5.6.320.0030.01414.23
5.6.310.0000.01314.55
5.6.300.0050.00514.32
5.6.290.0090.00314.22
5.6.280.0020.04217.55
5.6.270.0060.00614.32
5.6.260.0000.00914.03
5.6.250.0060.00914.45
5.6.240.0060.01114.14
5.6.230.0040.00814.43
5.6.220.0130.00313.89
5.6.210.0020.04717.51
5.6.200.0050.02516.17
5.6.190.0090.03217.24
5.6.180.0250.02117.39
5.6.170.0120.04317.45
5.6.160.0130.03817.47
5.6.150.0040.03616.21
5.6.140.0140.03716.07
5.6.130.0100.02816.30
5.6.120.0100.03717.72
5.6.110.0040.04417.62
5.6.100.0050.02617.53
5.6.90.0110.02217.71
5.6.80.0050.04317.28
5.6.70.0100.00014.31
5.6.60.0090.00014.00
5.6.50.0120.00314.31
5.6.40.0060.00614.07
5.6.30.0070.00714.05
5.6.20.0070.00413.84
5.6.10.0000.00814.16
5.6.00.0070.00713.91
5.5.380.0030.01414.12
5.5.370.0080.00313.84
5.5.360.0040.00414.07
5.5.350.0130.04517.12
5.5.340.0070.02215.91
5.5.330.0000.03117.04
5.5.320.0020.03017.14
5.5.310.0150.03217.25
5.5.300.0100.01815.95
5.5.290.0120.02016.17
5.5.280.0080.04217.27
5.5.270.0020.02417.62
5.5.260.0110.02017.63
5.5.250.0080.04317.11
5.5.240.2020.02417.04
5.5.230.0070.00714.23
5.5.220.0030.01314.05
5.5.210.0000.01714.16
5.5.200.0070.00414.01
5.5.190.0070.00013.58
5.5.180.0090.00314.00
5.5.170.0060.00614.01
5.5.160.0030.01014.05
5.5.150.0030.00614.03
5.5.140.0030.00714.11
5.5.130.0030.00513.84
5.5.120.0000.01314.04
5.5.110.0030.01013.91
5.5.100.0000.00913.89
5.5.90.0040.00813.99
5.5.80.0000.00914.13
5.5.70.0060.00614.07
5.5.60.0040.00814.02
5.5.50.0080.00313.84
5.5.40.0030.01214.16
5.5.30.0100.00314.06
5.5.20.0140.00014.08
5.5.10.0030.01314.17
5.5.00.0030.00613.82
5.4.450.0080.02015.17
5.4.440.0050.02315.21
5.4.430.0040.03415.24
5.4.420.0030.04515.12
5.4.410.0070.03315.25
5.4.400.0030.02914.89
5.4.390.0020.04515.00
5.4.380.0030.03314.93
5.4.370.0040.04114.98
5.4.360.0010.04514.99
5.4.350.0050.03215.01
5.4.340.0050.03614.88
5.4.330.0000.01010.67
5.4.320.0020.03814.88
5.4.310.0030.02614.98
5.4.300.0020.04315.01
5.4.290.0060.02514.95
5.4.280.0030.04014.88
5.4.270.0070.04015.07
5.4.260.0060.03614.93
5.4.250.0030.03814.84
5.4.240.0050.03415.04
5.4.230.0010.03414.94
5.4.220.0010.04414.98
5.4.210.0050.03814.84
5.4.200.0050.04114.93
5.4.190.0020.04314.82
5.4.180.0050.04014.76
5.4.170.0060.03314.94
5.4.160.0050.03214.95
5.4.150.0020.03814.86
5.4.140.0020.03913.53
5.4.130.0020.02613.47
5.4.120.0020.03113.68
5.4.110.0020.03613.75
5.4.100.0040.03713.46
5.4.90.0030.04013.71
5.4.80.0050.03513.54
5.4.70.0040.02913.67
5.4.60.0030.03313.64
5.4.50.0050.03713.70
5.4.40.0030.02213.55
5.4.30.0040.02013.40
5.4.20.0040.02813.50
5.4.10.0050.02713.58
5.4.00.0050.02513.31
5.3.290.0020.04312.56
5.3.280.0030.02512.26
5.3.270.0060.02312.29
5.3.260.0030.03212.50
5.3.250.0050.04012.47
5.3.240.0070.03312.39
5.3.230.0080.03312.53
5.3.220.0030.03312.45
5.3.210.0040.04212.37
5.3.200.0030.02612.57
5.3.190.0050.02712.28
5.3.180.0070.03012.53
5.3.170.0040.03312.52
5.3.160.0050.02812.45
5.3.150.0030.04012.35
5.3.140.0070.03012.42
5.3.130.0030.02512.29
5.3.120.0020.03712.43
5.3.110.0070.03712.46
5.3.100.0020.02912.26
5.3.90.0030.03812.21
5.3.80.0030.02912.17
5.3.70.0050.02712.13
5.3.60.0030.02412.24
5.3.50.0060.02212.12
5.3.40.0040.03011.96
5.3.30.0040.03211.94
5.3.20.0020.03911.92
5.3.10.0030.02811.82
5.3.00.0000.02211.81
5.2.170.0030.03312.23
5.2.160.0000.05712.23
5.2.150.0000.06312.23
5.2.140.0070.05012.23
5.2.130.0070.05312.23
5.2.120.0030.04712.23
5.2.110.0000.06012.23
5.2.100.0000.03012.23
5.2.90.0030.03712.23
5.2.80.0030.05312.23
5.2.70.0070.03312.23
5.2.60.0000.06312.23
5.2.50.0030.04712.23
5.2.40.0070.06012.23
5.2.30.0100.04312.23
5.2.20.0070.05712.23
5.2.10.0000.06012.23
5.2.00.0030.06312.23
5.1.60.0000.05312.23
5.1.50.0070.05312.23
5.1.40.0000.05012.23
5.1.30.0070.05312.23
5.1.20.0070.03712.23
5.1.10.0030.05312.23
5.1.00.0070.05012.23
5.0.50.0030.03712.23
5.0.40.0000.04012.23
5.0.30.0000.04712.23
5.0.20.0030.04312.23
5.0.10.0070.03012.23
5.0.00.0000.04712.23
4.4.90.0070.03012.23
4.4.80.0000.03712.23
4.4.70.0000.03312.23
4.4.60.0000.03712.23
4.4.50.0000.03012.23
4.4.40.0000.05012.23
4.4.30.0070.02312.23
4.4.20.0070.03012.23
4.4.10.0000.03712.23
4.4.00.0070.05012.23
4.3.110.0000.02712.23
4.3.100.0030.02712.23
4.3.90.0000.03012.23
4.3.80.0030.04712.23
4.3.70.0000.02312.23
4.3.60.0000.03712.23
4.3.50.0070.03012.23
4.3.40.0000.02712.23
4.3.30.0030.03312.23
4.3.20.0030.03712.23
4.3.10.0030.03312.23
4.3.00.0070.03012.23

preferences:
45.83 ms | 401 KiB | 5 Q