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) {} } interface BarInterface extends Test {}; //this is fail, but why? Bar implements Test, so.. logically it fulfills contract.. class Bar implements BarInterface { 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.0070.00718.68
8.3.50.0110.01022.11
8.3.40.0000.01418.79
8.3.30.0100.00320.12
8.3.20.0000.00818.60
8.3.10.0030.00520.83
8.3.00.0080.00019.43
8.2.180.0210.00016.50
8.2.170.0070.00722.96
8.2.160.0090.00620.34
8.2.150.0120.00624.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00419.83
8.2.110.0030.00720.48
8.2.100.0030.00917.66
8.2.90.0060.00319.22
8.2.80.0080.00019.34
8.2.70.0040.00417.50
8.2.60.0060.00317.80
8.2.50.0000.00818.07
8.2.40.0000.00819.75
8.2.30.0030.00319.45
8.2.20.0070.00017.60
8.2.10.0040.00417.69
8.2.00.0030.00517.69
8.1.280.0120.00325.92
8.1.270.0000.00823.99
8.1.260.0090.00926.35
8.1.250.0040.00428.09
8.1.240.0000.01023.83
8.1.230.0080.00320.90
8.1.220.0040.00418.77
8.1.210.0050.00318.95
8.1.200.0060.00317.00
8.1.190.0070.00017.51
8.1.180.0000.00918.10
8.1.170.0000.00818.50
8.1.160.0020.00518.83
8.1.150.0030.00618.49
8.1.140.0000.00717.39
8.1.130.0000.00717.75
8.1.120.0040.00417.45
8.1.110.0080.00017.39
8.1.100.0000.00817.45
8.1.90.0040.00417.43
8.1.80.0000.00717.29
8.1.70.0000.00717.38
8.1.60.0030.00617.41
8.1.50.0050.00317.43
8.1.40.0050.00317.36
8.1.30.0050.00317.42
8.1.20.0050.00317.50
8.1.10.0040.00417.26
8.1.00.0060.00617.21
8.0.300.0040.00419.84
8.0.290.0060.00317.05
8.0.280.0000.00718.39
8.0.270.0070.00017.18
8.0.260.0030.00316.82
8.0.250.0040.00416.98
8.0.240.0000.00916.97
8.0.230.0070.00017.01
8.0.220.0070.00016.98
8.0.210.0070.00316.92
8.0.200.0000.00616.84
8.0.190.0080.00016.88
8.0.180.0040.00416.80
8.0.170.0000.00716.89
8.0.160.0070.00016.93
8.0.150.0040.00416.86
8.0.140.0000.00716.74
8.0.130.0030.00313.26
8.0.120.0040.00416.73
8.0.110.0000.00716.76
8.0.100.0050.00217.00
8.0.90.0030.00516.81
8.0.80.0030.01316.86
8.0.70.0040.00416.72
8.0.60.0000.00716.76
8.0.50.0000.00816.93
8.0.30.0080.01117.06
8.0.20.0090.00917.40
8.0.10.0050.00216.85
8.0.00.0160.00616.70
7.4.330.0000.00516.84
7.4.320.0060.00016.54
7.4.300.0060.00316.47
7.4.290.0000.00616.30
7.4.280.0000.00716.45
7.4.270.0030.00316.40
7.4.260.0000.00613.22
7.4.250.0000.00716.51
7.4.240.0000.00716.38
7.4.230.0000.00716.24
7.4.220.0120.00916.51
7.4.210.0070.00816.51
7.4.200.0000.00716.63
7.4.190.0030.00516.70
7.4.160.0090.01416.68
7.4.150.0190.00017.40
7.4.140.0100.01117.86
7.4.130.0080.01016.52
7.4.120.0090.01216.33
7.4.110.0070.01516.27
7.4.100.0100.00716.31
7.4.90.0110.00716.32
7.4.80.0140.00919.39
7.4.70.0090.01316.16
7.4.60.0060.01016.48
7.4.50.0000.00916.40
7.4.40.0000.01422.77
7.4.30.0070.01316.42
7.4.10.0070.01014.82
7.4.00.0050.00715.05
7.3.330.0030.00213.25
7.3.320.0030.00312.97
7.3.310.0030.00316.34
7.3.300.0030.00316.09
7.3.290.0000.01416.20
7.3.280.0040.01416.27
7.3.270.0120.00617.40
7.3.260.0120.00718.24
7.3.250.0090.01116.35
7.3.240.0030.01316.53
7.3.230.0060.01016.39
7.3.210.0070.01016.43
7.3.200.0060.00919.39
7.3.190.0140.00316.48
7.3.180.0040.01116.34
7.3.170.0100.00716.40
7.3.160.0060.00916.34
7.3.130.0090.00914.91
7.3.120.0060.00814.76
7.3.110.0120.00614.77
7.3.100.0040.01114.59
7.3.90.0030.01214.42
7.3.80.0060.00914.83
7.3.70.0060.00914.86
7.3.60.0060.00614.55
7.3.50.0090.00314.68
7.3.40.0000.01114.83
7.3.30.0070.01014.58
7.3.20.0090.00016.47
7.3.10.0090.00916.42
7.3.00.0100.00516.43
7.2.330.0060.01616.11
7.2.320.0120.00616.66
7.2.310.0140.01116.51
7.2.300.0090.00616.32
7.2.290.0080.00816.33
7.2.260.0030.01014.78
7.2.250.0080.00914.88
7.2.240.0030.01315.00
7.2.230.0030.01314.84
7.2.220.0090.00914.88
7.2.210.0080.01114.86
7.2.200.0110.00714.70
7.2.190.0100.00314.87
7.2.180.0130.00314.82
7.2.170.0060.00914.95
7.2.160.0070.01014.93
7.2.150.0080.00816.69
7.2.140.0070.00716.76
7.2.130.0070.00816.51
7.2.120.0160.00316.62
7.2.110.0090.00816.61
7.2.100.0060.00916.79
7.2.90.0180.00716.69
7.2.80.0070.01016.41
7.2.70.0090.01316.63
7.2.60.0060.00916.52
7.2.50.0100.00916.43
7.2.40.0100.01216.66
7.2.30.0090.01016.78
7.2.20.0100.00616.61
7.2.10.0120.00616.50
7.2.00.0120.00317.45
7.1.330.0030.01015.61
7.1.320.0100.00315.50
7.1.310.0120.00615.72
7.1.300.0040.00715.65
7.1.290.0030.01315.83
7.1.280.0040.00815.70
7.1.270.0040.00815.70
7.1.260.0030.00915.47
7.1.250.0040.00915.54
7.1.240.0040.01115.64
7.1.230.0040.00415.77
7.1.220.0080.00815.50
7.1.210.0030.00515.73
7.1.200.0080.00615.61
7.1.190.0150.00315.59
7.1.180.0030.00615.66
7.1.170.0030.01015.69
7.1.160.0030.01315.57
7.1.150.0030.01015.67
7.1.140.0090.00315.76
7.1.130.0070.01015.74
7.1.120.0120.00415.69
7.1.110.0050.00515.52
7.1.100.0080.00416.86
7.1.90.0030.00615.81
7.1.80.0090.00615.80
7.1.70.0060.00816.18
7.1.60.0090.00817.38
7.1.50.0070.01116.20
7.1.40.0110.00415.41
7.1.30.0030.01015.48
7.1.20.0070.01115.68
7.1.10.0080.00915.70
7.1.00.0020.02719.07
7.0.330.0030.01015.13
7.0.320.0030.01015.25
7.0.310.0000.01315.29
7.0.300.0000.01415.25
7.0.290.0060.00615.35
7.0.280.0030.00915.33
7.0.270.0030.01015.34
7.0.260.0000.00815.45
7.0.250.0070.00715.30
7.0.240.0040.01115.21
7.0.230.0060.00315.43
7.0.220.0030.01015.00
7.0.210.0040.00915.32
7.0.200.0000.01115.83
7.0.190.0060.00315.36
7.0.180.0060.00815.21
7.0.170.0030.01015.06
7.0.160.0070.00715.34
7.0.150.0110.00015.31
7.0.140.0060.03818.54
7.0.130.0000.01715.46
7.0.120.0090.00615.21
7.0.110.0030.01015.23
7.0.100.0280.03617.50
7.0.90.0290.04217.40
7.0.80.0280.04217.55
7.0.70.0260.04317.58
7.0.60.0260.04117.51
7.0.50.0200.04717.88
7.0.40.0100.04016.79
7.0.30.0150.02716.60
7.0.20.0050.03816.68
7.0.10.0020.03316.70
7.0.00.0090.04616.61
5.6.400.0030.00614.14
5.6.390.0050.00514.38
5.6.380.0030.01014.38
5.6.370.0060.01213.88
5.6.360.0030.01513.71
5.6.350.0090.00614.44
5.6.340.0050.00514.45
5.6.330.0070.01014.13
5.6.320.0060.00614.19
5.6.310.0100.00313.79
5.6.300.0110.00414.09
5.6.290.0030.01214.08
5.6.280.0020.04317.60
5.6.270.0060.00914.09
5.6.260.0090.00014.48
5.6.250.0050.04517.41
5.6.240.0090.04317.38
5.6.230.0040.02617.50
5.6.220.0070.04217.39
5.6.210.0080.04217.22
5.6.200.0070.04217.56
5.6.190.0050.03117.50
5.6.180.0050.04217.66
5.6.170.0020.04817.44
5.6.160.0090.04317.53
5.6.150.0150.03517.48
5.6.140.0100.04317.60
5.6.130.0030.04817.48
5.6.120.0100.04117.69
5.6.110.0100.04017.46
5.6.100.0100.02517.65
5.6.90.0070.03317.56
5.6.80.0070.04317.12
5.6.70.0050.03817.25
5.6.60.0100.03817.34
5.6.50.0110.04017.16
5.6.40.0030.04517.03
5.6.30.0100.03617.19
5.6.20.0030.03817.19
5.6.10.0030.04817.29
5.6.00.0100.03517.16
5.5.380.0080.03817.05
5.5.370.0100.04217.21
5.5.360.0100.03817.30
5.5.350.0060.04317.19
5.5.340.0080.03017.37
5.5.330.0050.04217.36
5.5.320.0020.05117.44
5.5.310.0120.04117.43
5.5.300.0080.04017.38
5.5.290.0030.04317.60
5.5.280.0160.03317.41
5.5.270.0080.04617.45
5.5.260.0030.04917.53
5.5.250.0030.04717.17
5.5.240.0120.03616.92
5.5.230.0070.04016.93
5.5.220.0050.03917.02
5.5.210.0100.03817.14
5.5.200.0050.04217.01
5.5.190.0110.03816.88
5.5.180.0080.04016.90
5.5.170.0070.00713.71
5.5.160.0030.04417.02
5.5.150.0080.02517.16
5.5.140.0100.03817.21
5.5.130.0070.02716.93
5.5.120.0130.03817.03
5.5.110.0030.04217.11
5.5.100.0040.04616.98
5.5.90.0110.03616.93
5.5.80.0030.04516.73
5.5.70.0060.04017.08
5.5.60.0070.02716.85
5.5.50.0090.04017.14
5.5.40.0100.02816.90
5.5.30.0030.04116.85
5.5.20.0070.04516.96
5.5.10.0020.04716.79
5.5.00.0030.04317.03
5.4.450.0050.04715.16
5.4.440.0070.04215.25
5.4.430.0120.03815.22
5.4.420.0080.03515.10
5.4.410.0020.03014.90
5.4.400.0030.03814.99
5.4.390.0040.04014.86
5.4.380.0050.04014.82
5.4.370.0050.04114.92
5.4.360.0030.04314.97
5.4.350.0080.03814.89
5.4.340.0020.04714.84
5.4.330.0060.00010.54
5.4.320.0070.03714.80
5.4.310.0060.04114.83
5.4.300.0080.03815.04
5.4.290.0080.03815.01
5.4.280.0020.04014.97
5.4.270.0070.03814.76
5.4.260.0020.04214.90
5.4.250.0080.02615.04
5.4.240.0050.02714.92
5.4.230.0100.03314.79
5.4.220.0050.04314.79
5.4.210.0030.03814.63
5.4.200.0050.04314.74
5.4.190.0070.04015.06
5.4.180.0080.03515.06
5.4.170.0060.04014.91
5.4.160.0070.03614.91
5.4.150.0070.03614.84
5.4.140.0060.03913.44
5.4.130.0060.04013.72
5.4.120.0050.03713.41
5.4.110.0100.02013.63
5.4.100.0050.03813.75
5.4.90.0030.03413.71
5.4.80.0090.03813.53
5.4.70.0020.03813.60
5.4.60.0050.04013.54
5.4.50.0090.03813.66
5.4.40.0080.03313.73
5.4.30.0070.03713.60
5.4.20.0050.03813.52
5.4.10.0060.02613.65
5.4.00.0020.03513.38
5.3.290.0050.02212.56
5.3.280.0030.04312.48
5.3.270.0030.04012.55
5.3.260.0090.03612.52
5.3.250.0060.04012.40
5.3.240.0050.02512.42
5.3.230.0070.04112.53
5.3.220.0020.02612.42
5.3.210.0050.03812.39
5.3.200.0070.03912.29
5.3.190.0050.04012.51
5.3.180.0030.02512.51
5.3.170.0100.02812.50
5.3.160.0050.04012.44
5.3.150.0020.04212.36
5.3.140.0030.04112.32
5.3.130.0060.04112.37
5.3.120.0030.04012.53
5.3.110.0050.04112.40
5.3.100.0030.04112.18
5.3.90.0030.04012.18
5.3.80.0030.02712.24
5.3.70.0080.03312.17
5.3.60.0030.03812.15
5.3.50.0020.02212.02
5.3.40.0060.03312.12
5.3.30.0020.04011.93
5.3.20.0100.03211.82
5.3.10.0050.03311.89
5.3.00.0050.04311.87
5.2.170.0000.04011.26
5.2.160.0000.06311.22
5.2.150.0070.06011.14
5.2.140.0070.06011.18
5.2.130.0030.06011.23
5.2.120.0000.06310.97
5.2.110.0030.06311.02
5.2.100.0030.06311.21
5.2.90.0030.05711.23
5.2.80.0130.03011.19
5.2.70.0070.06311.09
5.2.60.0030.06311.08
5.2.50.0070.05311.03
5.2.40.0070.04010.98
5.2.30.0030.06311.04
5.2.20.0100.03011.06
5.2.10.0130.05310.76
5.2.00.0000.05010.64
5.1.60.0030.04710.07
5.1.50.0070.04710.10
5.1.40.0100.05010.07
5.1.30.0070.05310.39
5.1.20.0070.05310.22
5.1.10.0030.0539.93
5.1.00.0030.06010.16
5.0.50.0000.0378.39
5.0.40.0070.0378.27
5.0.30.0030.0578.11
5.0.20.0130.0208.20
5.0.10.0000.0478.20
5.0.00.0000.0638.17
4.4.90.0030.0337.60
4.4.80.0070.0307.60
4.4.70.0030.0307.60
4.4.60.0000.0407.60
4.4.50.0000.0207.60
4.4.40.0070.0507.60
4.4.30.0000.0377.60
4.4.20.0130.0237.60
4.4.10.0030.0377.60
4.4.00.0000.0307.60
4.3.110.0030.0337.60
4.3.100.0000.0337.60
4.3.90.0070.0307.60
4.3.80.0000.0437.60
4.3.70.0030.0337.60
4.3.60.0030.0337.60
4.3.50.0030.0337.60
4.3.40.0030.0537.60
4.3.30.0000.0377.60
4.3.20.0030.0337.60
4.3.10.0030.0337.60
4.3.00.0030.0277.60

preferences:
33.47 ms | 401 KiB | 5 Q