3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Test { public function check(Test $x); } interface TestTest extends 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 TestTest { public function check(Test $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.00018.17
8.3.50.0070.01221.08
8.3.40.0120.00318.58
8.3.30.0030.01020.29
8.3.20.0050.00318.64
8.3.10.0000.00820.79
8.3.00.0070.00419.56
8.2.180.0160.00316.32
8.2.170.0110.00422.96
8.2.160.0100.00320.28
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00219.52
8.2.110.0000.01022.26
8.2.100.0120.00017.72
8.2.90.0080.00017.84
8.2.80.0080.00019.02
8.2.70.0000.00817.50
8.2.60.0070.00017.93
8.2.50.0080.00018.07
8.2.40.0050.00319.94
8.2.30.0000.00721.22
8.2.20.0070.00017.59
8.2.10.0040.00417.68
8.2.00.0030.00917.66
8.1.280.0090.00625.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0090.00022.14
8.1.230.0040.00820.77
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0040.00417.41
8.1.180.0040.00418.10
8.1.170.0080.00018.51
8.1.160.0000.00818.82
8.1.150.0040.00418.51
8.1.140.0000.00817.29
8.1.130.0070.00017.80
8.1.120.0060.00617.30
8.1.110.0050.00317.38
8.1.100.0000.00817.40
8.1.90.0080.00017.27
8.1.80.0050.00217.44
8.1.70.0000.00717.40
8.1.60.0040.00417.55
8.1.50.0080.00017.41
8.1.40.0030.00617.48
8.1.30.0040.00417.50
8.1.20.0040.00417.45
8.1.10.0070.00017.39
8.1.00.0000.00817.24
8.0.300.0000.00719.77
8.0.290.0040.00417.05
8.0.280.0040.00418.38
8.0.270.0000.00717.19
8.0.260.0040.00416.67
8.0.250.0000.00716.77
8.0.240.0060.00316.77
8.0.230.0070.00016.75
8.0.220.0070.00016.72
8.0.210.0060.00316.70
8.0.200.0000.00616.85
8.0.190.0030.00616.72
8.0.180.0040.00416.87
8.0.170.0070.00016.84
8.0.160.0050.00216.89
8.0.150.0000.00816.66
8.0.140.0000.00816.64
8.0.130.0000.00613.23
8.0.120.0040.00416.75
8.0.110.0000.00716.72
8.0.100.0040.00416.64
8.0.90.0040.00416.72
8.0.80.0030.01316.78
8.0.70.0000.00716.72
8.0.60.0000.00716.80
8.0.50.0000.00716.73
8.0.30.0130.00817.06
8.0.20.0170.00617.40
8.0.10.0040.00416.82
8.0.00.0050.01316.61
7.4.330.0030.00316.68
7.4.320.0000.00616.46
7.4.300.0030.00316.39
7.4.290.0000.00716.52
7.4.280.0030.00316.45
7.4.270.0030.00316.44
7.4.260.0050.00013.19
7.4.250.0040.00416.54
7.4.240.0000.00716.51
7.4.230.0030.00316.27
7.4.220.0040.01416.43
7.4.210.0070.00816.50
7.4.200.0000.00716.59
7.4.190.0030.00316.57
7.4.160.0150.00616.69
7.4.150.0090.00817.40
7.4.140.0130.00517.86
7.4.130.0090.01116.39
7.4.120.0130.00516.38
7.4.110.0150.00316.35
7.4.100.0100.00716.48
7.4.90.0170.00316.29
7.4.80.0120.01119.39
7.4.70.0090.00916.17
7.4.60.0030.01316.30
7.4.50.0090.00016.16
7.4.40.0120.00322.77
7.4.30.0090.00916.59
7.4.00.0000.01614.95
7.3.330.0050.00013.02
7.3.320.0050.00012.99
7.3.310.0040.00416.14
7.3.300.0070.00016.04
7.3.290.0030.01216.13
7.3.280.0100.00816.14
7.3.270.0150.00317.40
7.3.260.0090.01018.24
7.3.250.0090.00816.31
7.3.240.0030.01416.43
7.3.230.0100.01316.39
7.3.210.0060.00916.28
7.3.200.0160.00619.39
7.3.190.0120.00616.11
7.3.180.0060.00916.57
7.3.170.0090.00616.27
7.3.160.0030.01216.48
7.3.120.0060.01014.88
7.2.330.0130.00416.31
7.2.320.0120.00916.62
7.2.310.0190.00016.56
7.2.300.0130.00316.35
7.2.290.0100.01516.33
7.2.00.0040.01219.10
7.1.200.0040.00815.39
7.1.100.0160.00616.00
7.1.70.0000.00816.68
7.1.60.0110.01419.24
7.1.50.0070.01716.79
7.1.00.0030.03322.28
7.0.200.0000.00716.66
7.0.140.0030.07322.21
7.0.120.0130.04021.92
7.0.110.0000.06022.11
7.0.100.0070.06322.00
7.0.90.0070.04722.02
7.0.80.0070.06322.05
7.0.70.0130.04322.18
7.0.60.0030.04321.66
7.0.50.0000.04321.95
7.0.40.0030.04720.00
7.0.30.0030.04719.98
7.0.20.0070.03719.97
7.0.10.0030.04319.97
7.0.00.0200.02320.15
5.6.280.0100.09021.08
5.6.270.0030.07021.00
5.6.260.0100.03021.05
5.6.250.0070.06320.88
5.6.240.0100.07320.71
5.6.230.0100.07720.75
5.6.220.0100.03020.94
5.6.210.0100.06321.01
5.6.200.0100.04021.03
5.6.190.0100.05320.79
5.6.180.0000.05720.75
5.6.170.0030.04020.89
5.6.160.0070.04321.01
5.6.150.0070.03320.89
5.6.140.0030.04720.70
5.6.130.0030.05020.88
5.6.120.0000.07020.99
5.6.110.0100.05020.74
5.6.100.0130.03720.79
5.6.90.0070.05320.77
5.6.80.0100.03320.25
5.6.70.0070.06320.40
5.6.60.0000.06020.32
5.6.50.0070.03720.43
5.6.40.0130.07320.08
5.6.30.0030.04020.36
5.6.20.0070.04020.38
5.6.10.0100.05720.13
5.6.00.0000.04320.30
5.5.380.0000.06317.61
5.5.370.0000.07017.52
5.5.360.0070.07717.59
5.5.350.0030.05717.68
5.5.340.0000.06017.92
5.5.330.0030.04018.10
5.5.320.0030.04317.91
5.5.310.0030.04717.96
5.5.300.0100.07017.93
5.5.290.0030.03717.94
5.5.280.0030.04318.22
5.5.270.0070.05318.21
5.5.260.0030.03718.26
5.5.250.0070.03717.94
5.5.240.0030.05017.52
5.5.230.0070.04717.31
5.5.220.0130.03717.53
5.5.210.0100.06717.45
5.5.200.0100.03717.41
5.5.190.0000.04717.31
5.5.180.0070.03717.48
5.5.160.0100.03317.41
5.5.150.0030.04717.30
5.5.140.0000.03717.27
5.5.130.0200.05317.18
5.5.120.0170.03017.45
5.5.110.0100.03317.44
5.5.100.0000.04017.39
5.5.90.0070.08017.35
5.5.80.0030.05017.48
5.5.70.0070.03017.15
5.5.60.0000.04317.15
5.5.50.0030.04017.46
5.5.40.0000.04317.34
5.5.30.0070.04017.29
5.5.20.0030.04017.16
5.5.10.0030.04017.37
5.5.00.0030.03717.30
5.4.450.0030.03719.50
5.4.440.0000.04319.29
5.4.430.0130.06719.26
5.4.420.0070.06019.22
5.4.410.0030.04019.16
5.4.400.0030.05018.96
5.4.390.0100.03319.13
5.4.380.0000.04018.98
5.4.370.0000.08319.29
5.4.360.0070.03318.95
5.4.350.0000.05019.11
5.4.340.0000.06018.95
5.4.320.0030.04018.96
5.4.310.0070.06319.09
5.4.300.0030.03319.04
5.4.290.0100.07319.08
5.4.280.0030.05718.90
5.4.270.0100.03718.96
5.4.260.0070.03719.19
5.4.250.0100.03318.95
5.4.240.0030.07319.13
5.4.230.0130.05319.11
5.4.220.0070.03319.14
5.4.210.0030.05019.00
5.4.200.0070.03719.17
5.4.190.0070.07318.89
5.4.180.0130.04719.17
5.4.170.0030.05318.89
5.4.160.0030.04318.88
5.4.150.0030.03719.11
5.4.140.0000.04016.36
5.4.130.0000.05716.39
5.4.120.0000.04016.58
5.4.110.0100.05316.57
5.4.100.0000.04016.57
5.4.90.0000.03716.26
5.4.80.0170.06316.53
5.4.70.0130.05716.35
5.4.60.0000.05716.41
5.4.50.0030.03316.47
5.4.40.0070.06716.54
5.4.30.0030.03316.41
5.4.20.0030.03716.40
5.4.10.0030.03316.28
5.4.00.0000.05715.82
5.3.290.0030.04314.76
5.3.280.0070.03714.60
5.3.270.0030.04014.61
5.3.260.0000.05014.73
5.3.250.0070.04014.69
5.3.240.0030.03014.63
5.3.230.0030.05714.83
5.3.220.0100.03014.58
5.3.210.0030.04314.59
5.3.200.0100.03014.69
5.3.190.0030.03714.66
5.3.180.0000.04014.59
5.3.170.0070.08014.65
5.3.160.0000.04314.69
5.3.150.0130.03014.42
5.3.140.0070.03314.55
5.3.130.0170.02714.69
5.3.120.0000.05014.69
5.3.110.0070.06714.52
5.3.100.0000.04014.02
5.3.90.0000.08013.98
5.3.80.0000.06714.11
5.3.70.0000.04713.98
5.3.60.0100.04014.07
5.3.50.0030.07013.94
5.3.40.0030.07714.03
5.3.30.0030.07313.76
5.3.20.0000.04313.84
5.3.10.0100.02713.66
5.3.00.0100.03013.65
5.2.170.0000.06711.17
5.2.160.0030.04311.13
5.2.150.0030.05311.14
5.2.140.0030.04711.16
5.2.130.0000.03311.13
5.2.120.0100.02710.98
5.2.110.0030.04011.06
5.2.100.0030.02711.13
5.2.90.0070.03011.19
5.2.80.0070.04311.07
5.2.70.0000.03011.11
5.2.60.0030.02711.20
5.2.50.0030.02711.00
5.2.40.0000.06311.01
5.2.30.0000.03311.00
5.2.20.0000.02711.02
5.2.10.0030.02710.84
5.2.00.0030.03310.69
5.1.60.0070.0209.95
5.1.50.0000.0279.99
5.1.40.0170.02710.07
5.1.30.0000.02710.42
5.1.20.0030.02710.34
5.1.10.0000.02710.14
5.1.00.0070.02010.09
5.0.50.0070.0379.95
5.0.40.0070.0139.95
5.0.30.0000.0339.95
5.0.20.0000.0209.95
5.0.10.0030.0179.95
5.0.00.0000.0309.95
4.4.90.0000.0179.95
4.4.80.0000.0139.95
4.4.70.0000.0179.95
4.4.60.0030.0179.95
4.4.50.0000.0209.95
4.4.40.0000.0279.95
4.4.30.0000.0279.95
4.4.20.0000.0139.95
4.4.10.0030.0109.95
4.4.00.0000.0279.95
4.3.110.0030.0139.95
4.3.100.0000.0179.95
4.3.90.0070.0079.95
4.3.80.0000.0279.95
4.3.70.0000.0139.95
4.3.60.0000.0139.95
4.3.50.0000.0139.95
4.3.40.0000.0209.95
4.3.30.0000.0139.95
4.3.20.0000.0139.95
4.3.10.0000.0139.95
4.3.00.0000.0139.95

preferences:
41.84 ms | 401 KiB | 5 Q