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) {} } class Bar implements Test { public function check(Foo $x) {} } //this is fail, but why? Bar implements Test, so.. logically it fulfills contract.. class Baz implements Test { public function check(Baz $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.0120.00318.55
8.3.50.0110.00821.14
8.3.40.0100.00718.77
8.3.30.0110.00420.17
8.3.20.0040.00418.73
8.3.10.0000.00820.92
8.3.00.0050.00319.44
8.2.180.0110.01116.38
8.2.170.0180.00322.96
8.2.160.0100.00320.55
8.2.150.0060.00324.18
8.2.140.0030.00524.66
8.2.130.0000.00826.16
8.2.120.0070.00019.66
8.2.110.0040.00420.49
8.2.100.0090.00317.72
8.2.90.0000.00919.08
8.2.80.0040.00417.97
8.2.70.0080.00317.50
8.2.60.0050.00317.90
8.2.50.0050.00518.07
8.2.40.0040.00419.77
8.2.30.0040.00421.27
8.2.20.0040.00417.51
8.2.10.0030.00517.68
8.2.00.0060.00317.53
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.48
8.1.230.0040.00722.82
8.1.220.0000.00818.77
8.1.210.0030.00618.87
8.1.200.0090.00017.11
8.1.190.0000.01017.17
8.1.180.0080.00018.10
8.1.170.0030.00518.54
8.1.160.0000.00718.74
8.1.150.0040.00418.48
8.1.140.0070.00017.23
8.1.130.0030.00317.80
8.1.120.0050.00517.49
8.1.110.0040.00417.31
8.1.100.0000.00717.24
8.1.90.0040.00417.29
8.1.80.0000.00817.36
8.1.70.0030.00317.21
8.1.60.0000.00817.54
8.1.50.0050.00217.31
8.1.40.0040.00417.43
8.1.30.0030.00617.54
8.1.20.0090.00017.43
8.1.10.0000.00817.38
8.1.00.0000.00717.29
8.0.300.0050.00319.98
8.0.290.0040.00417.18
8.0.280.0030.00318.38
8.0.270.0040.00417.96
8.0.260.0030.00316.73
8.0.250.0040.00416.91
8.0.240.0040.00416.91
8.0.230.0040.00416.79
8.0.220.0000.00616.86
8.0.210.0000.00716.77
8.0.200.0030.00316.86
8.0.190.0000.00716.99
8.0.180.0030.00516.82
8.0.170.0020.00516.91
8.0.160.0050.00316.92
8.0.150.0030.00516.88
8.0.140.0040.00416.83
8.0.130.0050.00013.38
8.0.120.0040.00416.74
8.0.110.0050.00316.82
8.0.100.0000.00816.68
8.0.90.0000.00816.90
8.0.80.0080.00816.95
8.0.70.0050.00316.73
8.0.60.0000.00816.91
8.0.50.0000.00716.71
8.0.30.0090.01016.85
8.0.20.0150.00317.40
8.0.10.0040.00416.89
8.0.00.0100.00716.68
7.4.330.0020.00216.73
7.4.320.0000.00616.54
7.4.300.0000.00616.39
7.4.290.0030.00316.36
7.4.280.0030.00316.57
7.4.270.0000.00816.38
7.4.260.0030.00313.21
7.4.250.0040.00416.37
7.4.240.0030.00316.48
7.4.230.0030.00316.55
7.4.220.0090.01216.42
7.4.210.0060.01116.50
7.4.200.0030.00316.36
7.4.190.0030.00316.53
7.4.160.0180.00416.38
7.4.150.0080.00817.40
7.4.140.0100.00717.86
7.4.130.0120.01116.33
7.4.120.0050.01316.45
7.4.110.0070.01016.37
7.4.100.0050.01316.46
7.4.90.0110.00716.47
7.4.80.0060.01019.39
7.4.70.0130.00316.54
7.4.60.0090.00916.35
7.4.50.0040.00416.59
7.4.40.0040.01522.77
7.4.30.0080.00916.52
7.4.00.0070.01114.78
7.3.330.0030.00313.16
7.3.320.0000.00513.16
7.3.310.0030.00316.08
7.3.300.0030.00316.10
7.3.290.0100.00316.20
7.3.280.0110.00816.24
7.3.270.0100.00717.40
7.3.260.0090.01018.24
7.3.250.0130.00816.47
7.3.240.0100.00616.26
7.3.230.0140.00316.39
7.3.210.0120.00616.37
7.3.200.0180.00419.39
7.3.190.0030.01316.22
7.3.180.0090.00616.41
7.3.170.0070.00716.27
7.3.160.0060.01316.34
7.3.120.0120.00014.57
7.2.330.0060.01116.40
7.2.320.0090.00916.23
7.2.310.0120.00616.50
7.2.300.0090.00616.63
7.2.290.0100.00616.55
7.2.60.0030.01016.72
7.2.00.0100.00319.05
7.1.200.0000.01415.65
7.1.70.0070.00317.00
7.1.60.0030.01017.15
7.1.50.0040.00716.82
7.1.40.0030.00716.48
7.1.30.0040.00816.58
7.1.20.0040.00816.71
7.1.10.0070.00416.45
7.1.00.0050.00216.60
7.0.200.0060.00316.77
7.0.190.0040.00416.70
7.0.180.0000.00716.39
7.0.170.0000.00716.30
7.0.160.0000.00716.38
7.0.150.0040.00416.39
7.0.140.0040.00416.30
7.0.130.0050.00516.33
7.0.120.0070.00316.49
7.0.110.0000.00816.30
7.0.100.0000.00716.30
7.0.90.0040.00416.30
7.0.80.0040.00416.30
7.0.70.0000.01216.30
7.0.60.0040.00416.30
7.0.50.0000.00716.30
7.0.40.0040.00416.30
7.0.30.0000.00816.30
7.0.20.0050.00316.30
7.0.10.0070.00316.30
7.0.00.0040.00416.30
5.6.300.0040.04420.96
5.6.290.0030.04520.95
5.6.280.0060.04521.00
5.6.270.0070.03920.86
5.6.260.0060.04120.92
5.6.250.0070.04020.92
5.6.240.0030.04320.98
5.6.230.0070.03721.02
5.6.220.0100.04820.95
5.6.210.0030.04421.02
5.6.200.0030.04620.98
5.6.190.0000.05120.94
5.6.180.0000.04620.79
5.6.170.0100.03620.88
5.6.160.0030.04220.95
5.6.150.0030.07420.88
5.6.140.0000.04820.77
5.6.130.0030.04020.73
5.6.120.0030.04420.71
5.6.110.0000.04820.71
5.6.100.0100.03720.96
5.6.90.0060.03620.96
5.6.80.0030.04120.17
5.6.70.0100.07920.27
5.6.60.0000.04220.31
5.6.50.0000.04420.26
5.6.40.0070.04120.30
5.6.30.0030.04920.18
5.6.20.0000.04720.25
5.6.10.0070.05220.13
5.6.00.0030.07920.21
5.5.380.0100.03917.46
5.5.370.0100.03317.41
5.5.360.0000.04817.61
5.5.350.0130.03517.63
5.5.340.0040.04418.09
5.5.330.0030.04318.09
5.5.320.0030.04517.84
5.5.310.0030.04517.75
5.5.300.0030.04018.00
5.5.290.0060.04418.09
5.5.280.0030.04418.12
5.5.270.0060.03918.00
5.5.260.0070.05118.02
5.5.250.0000.08417.93
5.5.240.0100.04817.42
5.5.230.0100.05517.08
5.5.220.0030.04017.23
5.5.210.0030.05417.22
5.5.200.0070.03417.40
5.5.190.0070.03817.45
5.5.180.0000.04317.21
5.5.160.0000.07617.48
5.5.150.0040.04217.47
5.5.140.0000.04517.41
5.5.130.0030.03817.39
5.5.120.0030.04017.34
5.5.110.0060.04317.20
5.5.100.0030.04517.34
5.5.90.0060.03317.33
5.5.80.0070.03517.35
5.5.70.0030.04617.13
5.5.60.0030.04717.25
5.5.50.0030.03717.33
5.5.40.0040.03617.39
5.5.30.0060.03917.25
5.5.20.0030.04617.27
5.5.10.0070.07917.25
5.5.00.0060.03617.35
5.4.450.0030.04219.28
5.4.440.0040.03919.30
5.4.430.0060.03919.38
5.4.420.0030.05019.43
5.4.410.0030.04319.35
5.4.400.0030.07919.07
5.4.390.0030.03818.95
5.4.380.0000.03918.98
5.4.370.0000.04319.10
5.4.360.0000.05018.95
5.4.350.0030.03918.92
5.4.340.0100.05619.07
5.4.320.0000.05819.21
5.4.310.0030.05518.92
5.4.300.0000.04619.13
5.4.290.0030.03719.07
5.4.280.0000.04119.13
5.4.270.0090.03118.97
5.4.260.0000.05418.92
5.4.250.0070.03318.93
5.4.240.0030.04418.96
5.4.230.0090.03718.86
5.4.220.0030.03918.99
5.4.210.0000.04419.05
5.4.200.0100.03019.06
5.4.190.0060.04818.97
5.4.180.0030.03718.96
5.4.170.0030.04319.20
5.4.160.0040.03919.14
5.4.150.0030.06719.12
5.4.140.0030.04416.57
5.4.130.0060.03616.64
5.4.120.0000.03716.59
5.4.110.0000.04416.70
5.4.100.0070.05716.76
5.4.90.0030.04016.66
5.4.80.0000.04016.77
5.4.70.0000.04016.67
5.4.60.0000.03716.73
5.4.50.0030.03416.68
5.4.40.0000.04116.73
5.4.30.0060.03216.55
5.4.20.0030.03816.68
5.4.10.0000.04316.70
5.4.00.0000.03716.30
5.3.290.0030.07816.30
5.3.280.0100.03616.30
5.3.270.0070.06916.30
5.3.260.0030.03516.30
5.3.250.0070.07716.30
5.3.240.0060.04116.30
5.3.230.0070.03316.30
5.3.220.0030.03916.30
5.3.210.0030.03616.30
5.3.200.0070.03416.30
5.3.190.0000.04116.30
5.3.180.0000.04116.30
5.3.170.0030.03716.30
5.3.160.0040.03616.30
5.3.150.0070.05016.30
5.3.140.0110.02816.30
5.3.130.0000.04216.30
5.3.120.0030.03716.30
5.3.110.0000.04716.30
5.3.100.0000.04416.30
5.3.90.0030.03416.30
5.3.80.0070.03716.30
5.3.70.0070.03916.30
5.3.60.0070.03116.30
5.3.50.0000.07416.30
5.3.40.0030.03616.30
5.3.30.0040.03616.30
5.3.20.0030.03516.30
5.3.10.0030.03216.30
5.3.00.0100.03916.30
5.2.170.0000.04116.30
5.2.160.0030.03116.30
5.2.150.0060.02416.30
5.2.140.0000.03116.30
5.2.130.0060.02616.30
5.2.120.0000.03016.30
5.2.110.0030.03216.30
5.2.100.0030.02716.30
5.2.90.0000.03116.30
5.2.80.0030.03016.30
5.2.70.0000.03216.30
5.2.60.0000.03816.30
5.2.50.0000.03216.30
5.2.40.0030.02916.30
5.2.30.0030.04116.30
5.2.20.0030.03316.30
5.2.10.0040.02516.30
5.2.00.0030.05016.30
5.1.60.0070.04016.30
5.1.50.0060.03516.30
5.1.40.0070.03716.30
5.1.30.0030.02516.30
5.1.20.0000.06316.30
5.1.10.0000.03716.30
5.1.00.0100.04216.30
5.0.50.0000.02416.30
5.0.40.0030.01816.30
5.0.30.0030.04016.30
5.0.20.0070.01716.30
5.0.10.0000.02216.30
5.0.00.0060.05116.30
4.4.90.0030.01416.30
4.4.80.0000.01816.30
4.4.70.0000.01916.30
4.4.60.0030.01316.30
4.4.50.0000.03016.30
4.4.40.0030.03716.30
4.4.30.0000.01716.30
4.4.20.0000.03016.30
4.4.10.0030.01516.30
4.4.00.0030.02316.30
4.3.110.0000.01716.30
4.3.100.0030.01416.30
4.3.90.0000.01816.30
4.3.80.0000.03116.30
4.3.70.0030.01316.30
4.3.60.0030.02516.30
4.3.50.0030.02516.30
4.3.40.0000.04516.30
4.3.30.0070.01316.30
4.3.20.0000.01716.30
4.3.10.0000.01816.30
4.3.00.0030.01316.30

preferences:
58.51 ms | 400 KiB | 5 Q