3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Test { public function check(Test $x); } interface BarInterface extends Test { public function check(BarInterface $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(BarInterface $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.07
8.3.50.0120.00722.05
8.3.40.0120.00418.63
8.3.30.0000.01420.17
8.3.20.0060.00318.74
8.3.10.0040.00420.82
8.3.00.0000.00819.54
8.2.180.0120.00916.38
8.2.170.0140.00022.96
8.2.160.0030.01020.52
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00719.77
8.2.110.0030.00619.37
8.2.100.0080.00417.91
8.2.90.0000.00819.22
8.2.80.0050.00317.97
8.2.70.0140.00017.25
8.2.60.0030.00618.04
8.2.50.0070.00318.07
8.2.40.0060.00319.76
8.2.30.0070.00021.14
8.2.20.0040.00417.46
8.2.10.0040.00417.63
8.2.00.0080.00417.52
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0050.00321.12
8.1.230.0100.00317.45
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0030.00617.10
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0090.00018.50
8.1.160.0070.00018.80
8.1.150.0030.00518.47
8.1.140.0040.00417.24
8.1.130.0060.00317.76
8.1.120.0070.00317.34
8.1.110.0020.00517.25
8.1.100.0030.00417.34
8.1.90.0000.00717.40
8.1.80.0030.00517.43
8.1.70.0030.00317.32
8.1.60.0060.00317.49
8.1.50.0000.00717.29
8.1.40.0040.00417.41
8.1.30.0000.00817.49
8.1.20.0030.00517.51
8.1.10.0030.00617.28
8.1.00.0060.00617.18
8.0.300.0080.00018.77
8.0.290.0050.00216.75
8.0.280.0000.00818.23
8.0.270.0070.00017.06
8.0.260.0040.00416.83
8.0.250.0030.00616.85
8.0.240.0060.00316.84
8.0.230.0040.00417.04
8.0.220.0000.00716.94
8.0.210.0030.00316.88
8.0.200.0070.00016.91
8.0.190.0000.00716.96
8.0.180.0040.00416.80
8.0.170.0030.00616.89
8.0.160.0000.00716.88
8.0.150.0040.00416.89
8.0.140.0030.00416.74
8.0.130.0030.00313.31
8.0.120.0050.00216.80
8.0.110.0040.00416.73
8.0.100.0070.00016.92
8.0.90.0000.00816.94
8.0.80.0050.01216.84
8.0.70.0030.00516.74
8.0.60.0000.00716.72
8.0.50.0000.00716.88
8.0.30.0110.00917.01
8.0.20.0100.00917.40
8.0.10.0000.00716.99
8.0.00.0100.00816.74
7.4.330.0050.00016.69
7.4.320.0030.00316.43
7.4.300.0030.00316.58
7.4.290.0000.00716.36
7.4.280.0040.00416.42
7.4.270.0000.00616.51
7.4.260.0030.00313.25
7.4.250.0030.00316.39
7.4.240.0000.00716.38
7.4.230.0040.00416.31
7.4.220.0060.01616.41
7.4.210.0090.00516.59
7.4.200.0000.00716.42
7.4.190.0000.00716.47
7.4.160.0040.01216.52
7.4.150.0120.00617.40
7.4.140.0090.00817.86
7.4.130.0070.01016.57
7.4.120.0060.01016.39
7.4.110.0090.01316.48
7.4.100.0110.00816.50
7.4.90.0120.00616.43
7.4.80.0120.01219.39
7.4.70.0060.01016.36
7.4.60.0090.01216.34
7.4.50.0040.00416.28
7.4.40.0070.01122.77
7.4.30.0090.00616.41
7.4.00.0090.00614.85
7.3.330.0030.00313.05
7.3.320.0050.00013.03
7.3.310.0000.00716.21
7.3.300.0000.00716.25
7.3.290.0040.01116.30
7.3.280.0070.01016.20
7.3.270.0120.00617.40
7.3.260.0140.00918.24
7.3.250.0090.00816.36
7.3.240.0130.01016.22
7.3.230.0060.00916.39
7.3.210.0140.00316.29
7.3.200.0060.01119.39
7.3.190.0130.00616.33
7.3.180.0130.00316.32
7.3.170.0090.00916.51
7.3.160.0160.00016.30
7.3.120.0100.00714.79
7.3.10.0030.00816.61
7.3.00.0070.00716.64
7.2.330.0130.00416.32
7.2.320.0100.00716.34
7.2.310.0130.00716.34
7.2.300.0130.00316.58
7.2.290.0100.00616.41
7.2.130.0050.00516.52
7.2.120.0030.01016.76
7.2.110.0040.00716.65
7.2.100.0060.00316.57
7.2.90.0070.00716.68
7.2.80.0040.01116.86
7.2.70.0100.00016.95
7.2.60.0060.00816.70
7.2.50.0070.00416.96
7.2.40.0030.00716.83
7.2.30.0000.01516.38
7.2.20.0100.00616.93
7.2.10.0070.00716.75
7.2.00.0010.01118.02
7.1.250.0030.00615.57
7.1.200.0070.00315.77
7.1.70.0060.00616.82
7.1.60.0030.01417.02
7.1.50.0000.01016.76
7.1.40.0070.00716.45
7.1.30.0080.00816.54
7.1.20.0000.01016.66
7.1.10.0070.00716.39
7.1.00.0040.00416.54
7.0.200.0000.00716.66
7.0.190.0000.00916.37
7.0.180.0000.00716.30
7.0.170.0040.00416.07
7.0.160.0030.00616.16
7.0.150.0030.00615.99
7.0.140.0050.00216.13
7.0.130.0050.00316.49
7.0.120.0040.00416.35
7.0.110.0040.00416.27
7.0.100.0000.01016.26
7.0.90.0000.01116.07
7.0.80.0000.01016.07
7.0.70.0000.00816.10
7.0.60.0070.01016.14
7.0.50.0080.00016.33
7.0.40.0070.01015.88
7.0.30.0040.00715.88
7.0.20.0030.00815.88
7.0.10.0070.00015.88
7.0.00.0050.00515.88
5.6.300.0070.04220.68
5.6.290.0030.04020.90
5.6.280.0070.04121.08
5.6.270.0070.04021.05
5.6.260.0030.04421.08
5.6.250.0000.04621.07
5.6.240.0030.06120.84
5.6.230.0000.05620.88
5.6.220.0070.03620.95
5.6.210.0000.05721.07
5.6.200.0070.04620.93
5.6.190.0160.04320.84
5.6.180.0000.04720.87
5.6.170.0030.08620.87
5.6.160.0000.05620.84
5.6.150.0030.04120.75
5.6.140.0070.06620.99
5.6.130.0130.07821.01
5.6.120.0070.04520.87
5.6.110.0030.07320.83
5.6.100.0040.04920.76
5.6.90.0000.05220.78
5.6.80.0030.06420.21
5.6.70.0100.04720.21
5.6.60.0070.04820.38
5.6.50.0070.03520.39
5.6.40.0030.07220.21
5.6.30.0130.07220.39
5.6.20.0000.04120.21
5.6.10.0060.03820.36
5.6.00.0070.03720.19
5.5.380.0030.05017.69
5.5.370.0000.04417.64
5.5.360.0070.04017.51
5.5.350.0060.03417.55
5.5.340.0000.04318.13
5.5.330.0000.06618.00
5.5.320.0070.05718.10
5.5.310.0070.07618.09
5.5.300.0070.08418.10
5.5.290.0000.05917.71
5.5.280.0070.04017.86
5.5.270.0030.05218.17
5.5.260.0030.04418.05
5.5.250.0030.03917.82
5.5.240.0030.04117.51
5.5.230.0000.04417.44
5.5.220.0140.03117.12
5.5.210.0030.03817.38
5.5.200.0060.04517.10
5.5.190.0070.06317.44
5.5.180.0030.03717.09
5.5.160.0030.03917.18
5.5.150.0000.04217.50
5.5.140.0060.03517.18
5.5.130.0030.03817.52
5.5.120.0030.04417.46
5.5.110.0090.03417.41
5.5.100.0030.04517.37
5.5.90.0000.04117.34
5.5.80.0000.04416.96
5.5.70.0000.04217.33
5.5.60.0030.03617.30
5.5.50.0070.03917.10
5.5.40.0000.04017.36
5.5.30.0030.04216.98
5.5.20.0240.03717.22
5.5.10.0030.04017.28
5.5.00.0100.04917.31
5.4.450.0070.06419.38
5.4.440.0030.04719.54
5.4.430.0030.07019.27
5.4.420.0070.03619.44
5.4.410.0130.04919.43
5.4.400.0140.04218.90
5.4.390.0030.03818.98
5.4.380.0060.03919.14
5.4.370.0000.04618.92
5.4.360.0070.07219.11
5.4.350.0030.03719.06
5.4.340.0100.08619.23
5.4.320.0070.04019.23
5.4.310.0000.04219.05
5.4.300.0030.05219.02
5.4.290.0100.03319.28
5.4.280.0030.03719.04
5.4.270.0030.03718.89
5.4.260.0030.04119.23
5.4.250.0130.03319.04
5.4.240.0040.03918.96
5.4.230.0060.03919.04
5.4.220.0000.04719.20
5.4.210.0030.03619.05
5.4.200.0030.04419.20
5.4.190.0070.03419.13
5.4.180.0070.04119.16
5.4.170.0000.04318.97
5.4.160.0070.04618.89
5.4.150.0100.08719.19
5.4.140.0030.03916.80
5.4.130.0030.03916.82
5.4.120.0000.03616.78
5.4.110.0100.03516.54
5.4.100.0000.04016.68
5.4.90.0000.04116.81
5.4.80.0000.04816.74
5.4.70.0030.04116.79
5.4.60.0070.04716.61
5.4.50.0060.03416.75
5.4.40.0000.04116.66
5.4.30.0000.04216.38
5.4.20.0000.04016.38
5.4.10.0030.03816.61
5.4.00.0030.03515.89
5.3.290.0000.04215.88
5.3.280.0030.04315.88
5.3.270.0040.03515.88
5.3.260.0060.03215.88
5.3.250.0070.03415.88
5.3.240.0100.04215.88
5.3.230.0030.03815.88
5.3.220.0000.04715.88
5.3.210.0270.03415.88
5.3.200.0200.04015.88
5.3.190.0030.03715.88
5.3.180.0000.04215.88
5.3.170.0070.04015.88
5.3.160.0000.04415.88
5.3.150.0000.04315.88
5.3.140.0070.03915.88
5.3.130.0030.04815.88
5.3.120.0130.04715.88
5.3.110.0000.04415.88
5.3.100.0000.04315.88
5.3.90.0030.03815.88
5.3.80.0000.04015.88
5.3.70.0000.04315.88
5.3.60.0030.03615.88
5.3.50.0000.03915.88
5.3.40.0030.03715.88
5.3.30.0100.04815.88
5.3.20.0070.03815.88
5.3.10.0100.03015.88
5.3.00.0060.04315.88
5.2.170.0030.02915.88
5.2.160.0060.02515.88
5.2.150.0000.03415.88
5.2.140.0030.03015.88
5.2.130.0000.03615.88
5.2.120.0000.03615.88
5.2.110.0090.02415.88
5.2.100.0130.02815.88
5.2.90.0220.02815.88
5.2.80.0060.02615.88
5.2.70.0000.03315.88
5.2.60.0030.02815.88
5.2.50.0000.03615.88
5.2.40.0000.03315.88
5.2.30.0030.03115.88
5.2.20.0000.03015.88
5.2.10.0060.02715.88
5.2.00.0040.02915.88
5.1.60.0030.02615.88
5.1.50.0040.02615.88
5.1.40.0000.02715.88
5.1.30.0100.01915.88
5.1.20.0040.02715.88
5.1.10.0040.02615.88
5.1.00.0040.02815.88
5.0.50.0030.02315.88
5.0.40.0000.02415.88
5.0.30.0070.05615.88
5.0.20.0030.02015.88
5.0.10.0030.01915.88
5.0.00.0000.03315.88
4.4.90.0000.02215.88
4.4.80.0040.01215.88
4.4.70.0000.02015.88
4.4.60.0000.01815.88
4.4.50.0040.01415.88
4.4.40.0060.02815.88
4.4.30.0000.01815.88
4.4.20.0000.02015.88
4.4.10.0000.01615.88
4.4.00.0030.02315.88
4.3.110.0030.01915.88
4.3.100.0050.01315.88
4.3.90.0030.01415.88
4.3.80.0030.02715.88
4.3.70.0030.01315.88
4.3.60.0030.02315.88
4.3.50.0030.01415.88
4.3.40.0060.01815.88
4.3.30.0000.01715.88
4.3.20.0000.01815.88
4.3.10.0000.01815.88
4.3.00.0030.01615.88

preferences:
42.74 ms | 401 KiB | 5 Q