3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Test { public function check(Test $x); } interface TestTest extends Test { public function check(TestTest $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 TestTest { public function check(TestTest $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.00318.27
8.3.50.0120.00421.90
8.3.40.0120.00618.55
8.3.30.0100.01020.34
8.3.20.0080.00018.79
8.3.10.0050.00320.96
8.3.00.0040.00419.56
8.2.180.0140.00016.32
8.2.170.0090.01222.96
8.2.160.0070.00720.57
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0040.00419.83
8.2.110.0070.00320.29
8.2.100.0040.00717.69
8.2.90.0040.00419.09
8.2.80.0030.00517.97
8.2.70.0000.00917.38
8.2.60.0060.00317.80
8.2.50.0080.00318.07
8.2.40.0050.00318.09
8.2.30.0040.00419.36
8.2.20.0020.00517.46
8.2.10.0050.00317.63
8.2.00.0060.00317.48
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0030.00722.41
8.1.230.0060.00620.95
8.1.220.0060.00318.77
8.1.210.0040.00418.88
8.1.200.0060.00317.23
8.1.190.0040.00417.28
8.1.180.0040.00418.10
8.1.170.0080.00018.49
8.1.160.0040.00418.81
8.1.150.0000.00718.61
8.1.140.0000.00817.26
8.1.130.0030.00317.83
8.1.120.0040.00717.37
8.1.110.0080.00017.30
8.1.100.0040.00417.30
8.1.90.0000.00717.28
8.1.80.0030.00317.40
8.1.70.0000.00717.34
8.1.60.0040.00417.52
8.1.50.0040.00417.42
8.1.40.0050.00217.51
8.1.30.0000.00817.54
8.1.20.0000.00917.43
8.1.10.0070.00017.35
8.1.00.0000.00817.32
8.0.300.0070.00019.95
8.0.290.0040.00417.04
8.0.280.0080.00018.39
8.0.270.0050.00217.10
8.0.260.0000.00616.69
8.0.250.0040.00416.82
8.0.240.0000.00816.92
8.0.230.0030.00316.98
8.0.220.0030.00316.86
8.0.210.0070.00016.85
8.0.200.0000.00616.95
8.0.190.0000.00716.98
8.0.180.0020.00516.91
8.0.170.0000.00816.76
8.0.160.0030.00316.93
8.0.150.0000.00716.89
8.0.140.0040.00416.89
8.0.130.0000.00613.32
8.0.120.0000.00816.85
8.0.110.0040.00416.82
8.0.100.0050.00216.92
8.0.90.0000.00716.88
8.0.80.0100.00716.90
8.0.70.0000.00716.71
8.0.60.0040.00416.86
8.0.50.0070.00016.73
8.0.30.0120.00917.09
8.0.20.0120.00817.40
8.0.10.0050.00317.04
8.0.00.0140.00616.66
7.4.330.0020.00216.89
7.4.320.0040.00416.46
7.4.300.0060.00016.58
7.4.290.0070.00016.54
7.4.280.0000.00716.44
7.4.270.0070.00016.38
7.4.260.0040.00413.25
7.4.250.0040.00416.27
7.4.240.0030.00316.51
7.4.230.0030.00316.32
7.4.220.0150.00816.55
7.4.210.0110.00616.49
7.4.200.0030.00316.60
7.4.190.0070.00016.59
7.4.160.0070.00916.28
7.4.150.0090.00817.40
7.4.140.0080.00917.86
7.4.130.0060.01216.49
7.4.120.0080.00916.51
7.4.110.0100.01016.48
7.4.100.0070.01116.38
7.4.90.0030.01416.43
7.4.80.0090.01219.39
7.4.70.0140.00316.34
7.4.60.0090.00616.51
7.4.50.0040.00416.39
7.4.40.0070.01122.77
7.4.30.0070.01116.68
7.4.10.0060.01215.11
7.4.00.0100.00515.08
7.3.330.0000.00513.23
7.3.320.0050.00013.10
7.3.310.0030.00316.19
7.3.300.0070.00016.14
7.3.290.0060.00916.20
7.3.280.0100.00816.23
7.3.270.0120.00617.40
7.3.260.0080.01118.24
7.3.250.0050.01216.34
7.3.240.0070.01016.35
7.3.230.0080.00816.39
7.3.210.0090.01016.05
7.3.200.0110.01219.39
7.3.190.0160.00616.38
7.3.180.0100.00616.38
7.3.170.0130.00316.31
7.3.160.0100.00716.39
7.3.130.0030.01614.70
7.3.120.0060.00814.87
7.3.110.0040.01114.85
7.3.100.0080.00314.46
7.3.90.0070.01014.50
7.3.80.0060.01214.88
7.3.70.0030.01014.47
7.3.60.0040.01114.73
7.3.50.0100.00714.93
7.3.40.0090.00614.52
7.3.30.0070.00414.78
7.3.20.0090.00316.38
7.3.10.0140.00316.58
7.3.00.0000.01316.56
7.2.330.0130.00416.41
7.2.320.0120.00616.51
7.2.310.0080.01616.52
7.2.300.0100.00716.31
7.2.290.0090.00916.52
7.2.260.0000.01715.14
7.2.250.0130.00614.64
7.2.240.0000.01414.85
7.2.230.0070.01114.73
7.2.220.0100.01014.75
7.2.210.0040.00415.10
7.2.200.0000.01414.89
7.2.190.0040.01115.04
7.2.180.0070.00714.92
7.2.170.0020.00714.50
7.2.160.0070.01014.60
7.2.150.0070.01016.75
7.2.140.0070.01016.42
7.2.130.0070.00717.01
7.2.120.0060.01016.50
7.2.110.0030.00716.58
7.2.100.0060.00616.81
7.2.90.0040.01116.89
7.2.80.0020.01016.59
7.2.70.0000.01816.79
7.2.60.0030.01116.79
7.2.50.0040.00716.75
7.2.40.0000.01016.61
7.2.30.0040.01116.57
7.2.20.0070.01016.74
7.2.10.0040.01416.74
7.2.00.0080.00817.99
7.1.330.0050.00515.76
7.1.320.0060.00915.46
7.1.310.0000.01015.41
7.1.300.0040.00715.72
7.1.290.0060.01015.55
7.1.280.0080.00415.73
7.1.270.0070.00715.41
7.1.260.0040.00715.56
7.1.250.0080.00415.39
7.1.240.0060.00815.56
7.1.230.0070.00315.73
7.1.220.0060.00615.58
7.1.210.0090.00015.45
7.1.200.0000.01415.61
7.1.190.0000.01415.50
7.1.180.0070.00715.65
7.1.170.0030.01015.64
7.1.160.0030.01415.67
7.1.150.0070.00415.83
7.1.140.0060.00915.55
7.1.130.0030.01015.63
7.1.120.0100.00715.50
7.1.110.0060.00615.87
7.1.100.0030.01016.76
7.1.90.0000.01315.58
7.1.80.0120.00315.50
7.1.70.0060.00816.11
7.1.60.0070.01117.44
7.1.50.0090.00716.26
7.1.40.0000.00915.72
7.1.30.0080.00615.64
7.1.20.0030.01315.36
7.1.10.0070.01015.75
7.1.00.0070.01719.05
7.0.330.0070.00715.14
7.0.320.0000.01215.02
7.0.310.0070.00715.32
7.0.300.0000.01315.06
7.0.290.0040.00715.41
7.0.280.0070.00715.32
7.0.270.0120.00615.31
7.0.260.0030.01115.16
7.0.250.0000.00815.31
7.0.240.0030.01015.27
7.0.230.0090.00615.09
7.0.220.0000.01115.21
7.0.210.0040.00915.30
7.0.200.0050.00616.14
7.0.190.0030.01315.43
7.0.180.0120.00315.48
7.0.170.0070.01015.40
7.0.160.0060.00615.25
7.0.150.0070.00715.05
7.0.140.0050.04318.48
7.0.130.0100.00615.47
7.0.120.0110.00315.48
7.0.110.0060.00915.35
7.0.100.0300.04317.53
7.0.90.0250.04917.66
7.0.80.0250.02817.61
7.0.70.0250.03117.47
7.0.60.0250.04117.63
7.0.50.0320.03817.81
7.0.40.0090.03716.76
7.0.30.0090.03716.75
7.0.20.0070.04416.67
7.0.10.0050.04616.72
7.0.00.0110.04016.69
5.6.400.0030.00913.90
5.6.390.0030.00614.14
5.6.380.0000.01214.15
5.6.370.0000.01514.49
5.6.360.0060.00314.44
5.6.350.0030.01014.32
5.6.340.0040.01113.92
5.6.330.0040.01413.94
5.6.320.0060.00914.55
5.6.310.0060.01014.38
5.6.300.0090.00914.47
5.6.290.0070.01114.36
5.6.280.0020.04417.54
5.6.270.0040.01114.37
5.6.260.0100.00014.06
5.6.250.0070.04717.59
5.6.240.0110.03817.44
5.6.230.0080.04017.48
5.6.220.0070.04317.50
5.6.210.0080.03817.39
5.6.200.0130.04017.67
5.6.190.0020.03317.70
5.6.180.0070.04217.59
5.6.170.0140.03917.68
5.6.160.0050.03417.56
5.6.150.0080.03317.65
5.6.140.0070.04317.65
5.6.130.0090.04717.58
5.6.120.0080.04217.46
5.6.110.0120.04517.72
5.6.100.0100.04417.48
5.6.90.0100.03317.45
5.6.80.0100.04017.39
5.6.70.0120.03517.10
5.6.60.0070.04517.16
5.6.50.0070.04017.31
5.6.40.0100.03817.13
5.6.30.0140.03517.24
5.6.20.0060.04317.20
5.6.10.0110.03317.14
5.6.00.0130.03717.35
5.5.380.0090.02617.25
5.5.370.0040.04617.24
5.5.360.0100.03717.36
5.5.350.0100.04017.23
5.5.340.0070.04117.38
5.5.330.0090.04217.53
5.5.320.0100.02917.57
5.5.310.0040.03417.59
5.5.300.0050.03217.31
5.5.290.0090.04217.50
5.5.280.0130.03817.46
5.5.270.0050.04717.41
5.5.260.0070.04217.43
5.5.250.0020.05117.16
5.5.240.0060.04417.23
5.5.230.0030.04017.08
5.5.220.0050.04717.14
5.5.210.0120.04017.17
5.5.200.0070.04117.07
5.5.190.0120.04016.97
5.5.180.0050.04717.21
5.5.170.0060.00813.82
5.5.160.0030.04517.10
5.5.150.0110.03617.10
5.5.140.0110.03517.21
5.5.130.0070.03117.04
5.5.120.0100.02517.08
5.5.110.0100.02817.01
5.5.100.0040.03416.99
5.5.90.0110.04017.04
5.5.80.0030.04817.15
5.5.70.0050.04516.85
5.5.60.0100.04017.00
5.5.50.0030.04216.90
5.5.40.0100.03816.97
5.5.30.0050.04217.04
5.5.20.0030.04916.96
5.5.10.0050.04417.11
5.5.00.0110.03816.91
5.4.450.0050.03815.47
5.4.440.0040.03315.44
5.4.430.0110.03315.57
5.4.420.0080.03415.55
5.4.410.0030.03215.50
5.4.400.0050.04215.40
5.4.390.0100.03815.28
5.4.380.0140.03615.35
5.4.370.0050.03015.35
5.4.360.0060.03915.35
5.4.350.0060.04215.24
5.4.340.0050.04215.28
5.4.330.0060.00611.66
5.4.320.0100.03015.41
5.4.310.0020.04215.35
5.4.300.0100.03515.27
5.4.290.0080.03615.39
5.4.280.0080.02315.25
5.4.270.0030.04015.39
5.4.260.0050.04215.45
5.4.250.0080.04015.42
5.4.240.0030.04215.37
5.4.230.0060.02615.26
5.4.220.0130.03515.33
5.4.210.0020.04215.30
5.4.200.0030.02615.43
5.4.190.0050.03715.28
5.4.180.0050.03515.37
5.4.170.0050.04515.34
5.4.160.0020.03815.34
5.4.150.0030.04215.24
5.4.140.0090.03913.98
5.4.130.0090.03513.98
5.4.120.0070.03514.10
5.4.110.0000.04414.03
5.4.100.0020.03514.04
5.4.90.0060.03914.04
5.4.80.0060.04014.05
5.4.70.0050.02114.06
5.4.60.0000.04314.03
5.4.50.0100.03514.04
5.4.40.0020.04114.06
5.4.30.0080.03314.04
5.4.20.0030.04014.01
5.4.10.0100.03314.06
5.4.00.0070.03813.78
5.3.290.0070.02013.14
5.3.280.0050.04113.20
5.3.270.0060.02913.16
5.3.260.0020.03613.13
5.3.250.0070.04213.16
5.3.240.0030.04413.19
5.3.230.0050.04213.18
5.3.220.0060.04013.09
5.3.210.0030.04413.14
5.3.200.0050.04513.15
5.3.190.0070.02713.18
5.3.180.0070.03613.13
5.3.170.0010.03013.13
5.3.160.0030.04013.17
5.3.150.0130.01813.14
5.3.140.0060.03913.14
5.3.130.0050.03913.13
5.3.120.0100.03313.10
5.3.110.0050.04113.13
5.3.100.0080.03312.88
5.3.90.0060.03912.87
5.3.80.0110.03212.84
5.3.70.0100.03812.91
5.3.60.0040.04012.90
5.3.50.0050.03712.81
5.3.40.0050.03812.77
5.3.30.0030.04012.78
5.3.20.0050.02412.73
5.3.10.0090.03112.60
5.3.00.0020.04012.60
5.2.170.0030.06711.18
5.2.160.0070.06011.27
5.2.150.0100.06010.98
5.2.140.0070.05711.21
5.2.130.0130.03011.10
5.2.120.0000.06711.11
5.2.110.0070.05010.96
5.2.100.0100.05711.04
5.2.90.0030.06011.00
5.2.80.0030.05711.19
5.2.70.0030.06311.15
5.2.60.0030.06311.04
5.2.50.0070.04010.94
5.2.40.0070.04710.99
5.2.30.0070.05711.05
5.2.20.0030.06710.85
5.2.10.0100.05710.82
5.2.00.0070.06010.85
5.1.60.0030.05310.49
5.1.50.0000.06010.49
5.1.40.0100.05010.49
5.1.30.0030.05710.49
5.1.20.0070.04310.49
5.1.10.0070.05310.49
5.1.00.0030.06010.49
5.0.50.0100.04010.49
5.0.40.0030.04310.49
5.0.30.0070.06310.49
5.0.20.0030.02710.49
5.0.10.0030.04310.49
5.0.00.0030.06310.49
4.4.90.0000.02310.49
4.4.80.0030.03010.49
4.4.70.0030.03710.49
4.4.60.0030.03010.49
4.4.50.0000.03010.49
4.4.40.0030.05010.49
4.4.30.0030.03010.49
4.4.20.0070.02010.49
4.4.10.0000.02010.49
4.4.00.0000.05710.49
4.3.110.0030.02710.49
4.3.100.0030.02710.49
4.3.90.0030.02710.49
4.3.80.0070.05010.49
4.3.70.0030.03010.49
4.3.60.0030.02710.49
4.3.50.0030.03310.49
4.3.40.0000.04310.49
4.3.30.0000.03010.49
4.3.20.0030.03710.49
4.3.10.0030.02010.49
4.3.00.0030.03010.49

preferences:
46.69 ms | 400 KiB | 5 Q