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 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.0060.00918.43
8.3.50.0100.00921.98
8.3.40.0110.00418.49
8.3.30.0030.01020.34
8.3.20.0080.00018.71
8.3.10.0000.00820.80
8.3.00.0050.00319.43
8.2.180.0100.00716.63
8.2.170.0070.00722.96
8.2.160.0100.00320.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00319.77
8.2.110.0050.00522.11
8.2.100.0090.00317.67
8.2.90.0040.00419.14
8.2.80.0040.00419.21
8.2.70.0080.00017.59
8.2.60.0060.00317.80
8.2.50.0070.00318.07
8.2.40.0070.00018.03
8.2.30.0000.00719.38
8.2.20.0050.00317.57
8.2.10.0040.00417.68
8.2.00.0000.01017.50
8.1.280.0100.00325.92
8.1.270.0050.00223.99
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00720.68
8.1.230.0110.00020.85
8.1.220.0030.00518.77
8.1.210.0060.00318.94
8.1.200.0030.00717.10
8.1.190.0000.00717.41
8.1.180.0000.00818.10
8.1.170.0060.00318.46
8.1.160.0000.00718.74
8.1.150.0030.00618.58
8.1.140.0040.00417.35
8.1.130.0000.00717.68
8.1.120.0000.00817.43
8.1.110.0020.00517.38
8.1.100.0040.00417.32
8.1.90.0000.00717.35
8.1.80.0000.00717.45
8.1.70.0070.00017.37
8.1.60.0040.00417.52
8.1.50.0040.00417.41
8.1.40.0030.00617.50
8.1.30.0050.00317.59
8.1.20.0040.00417.60
8.1.10.0040.00417.39
8.1.00.0040.00817.25
8.0.300.0000.00719.90
8.0.290.0040.00417.05
8.0.280.0070.00018.32
8.0.270.0000.00717.13
8.0.260.0000.00816.76
8.0.250.0040.00416.99
8.0.240.0060.00316.86
8.0.230.0070.00016.93
8.0.220.0030.00316.88
8.0.210.0070.00316.89
8.0.200.0030.00316.84
8.0.190.0070.00016.92
8.0.180.0040.00416.88
8.0.170.0000.00716.81
8.0.160.0000.00716.86
8.0.150.0000.00816.86
8.0.140.0050.00316.83
8.0.130.0000.00713.32
8.0.120.0000.00816.82
8.0.110.0000.00716.96
8.0.100.0040.00416.76
8.0.90.0030.00516.99
8.0.80.0120.00916.91
8.0.70.0040.00416.86
8.0.60.0080.00016.93
8.0.50.0040.00416.76
8.0.30.0120.00716.95
8.0.20.0070.01117.40
8.0.10.0000.00716.88
8.0.00.0160.00216.66
7.4.330.0050.00016.74
7.4.320.0030.00316.34
7.4.300.0000.00816.44
7.4.290.0030.00316.49
7.4.280.0070.00016.57
7.4.270.0040.00416.43
7.4.260.0000.00613.18
7.4.250.0040.00416.41
7.4.240.0000.00716.55
7.4.230.0030.00316.30
7.4.220.0090.00916.35
7.4.210.0120.00316.53
7.4.200.0050.00316.30
7.4.190.0050.00316.50
7.4.160.0130.00416.46
7.4.150.0090.00917.40
7.4.140.0230.00817.86
7.4.130.0090.00816.36
7.4.120.0100.00716.45
7.4.110.0130.00716.38
7.4.100.0050.02016.23
7.4.90.0100.01016.69
7.4.80.0100.00719.39
7.4.70.0120.00316.30
7.4.60.0100.00716.35
7.4.50.0060.00316.57
7.4.40.0000.01422.77
7.4.30.0070.01016.58
7.4.00.0100.00614.64
7.3.330.0030.00313.05
7.3.320.0020.00213.00
7.3.310.0000.00716.10
7.3.300.0000.00616.27
7.3.290.0080.00516.23
7.3.280.0070.00816.24
7.3.270.0140.00317.40
7.3.260.0130.00718.24
7.3.250.0110.01116.41
7.3.240.0070.01016.29
7.3.230.0110.00616.39
7.3.210.0100.00716.31
7.3.200.0110.00519.39
7.3.190.0090.01016.37
7.3.180.0060.01116.35
7.3.170.0160.00016.54
7.3.160.0130.00316.23
7.3.120.0070.00714.50
7.2.330.0130.00716.46
7.2.320.0070.01416.49
7.2.310.0130.00416.30
7.2.300.0090.00616.62
7.2.290.0110.00716.56
7.2.60.0120.00316.62
7.2.00.0070.00719.42
7.1.200.0000.00915.68
7.1.70.0040.00717.01
7.1.60.0040.00917.18
7.1.50.0040.00816.67
7.1.40.0040.00816.44
7.1.30.0090.00616.57
7.1.20.0040.00816.67
7.1.10.0070.01016.67
7.1.00.0000.01016.71
7.0.200.0000.00816.40
7.0.190.0000.00716.29
7.0.180.0040.00415.93
7.0.170.0040.01116.04
7.0.160.0000.01015.93
7.0.150.0000.01016.18
7.0.140.0070.00316.20
7.0.130.0040.00816.59
7.0.120.0030.00716.59
7.0.110.0030.00716.02
7.0.100.0000.01216.18
7.0.90.0000.01215.95
7.0.80.0070.00416.20
7.0.70.0060.00616.11
7.0.60.0040.00415.95
7.0.50.0070.00716.21
7.0.40.0070.00415.23
7.0.30.0030.00915.23
7.0.20.0000.00815.23
7.0.10.0030.01315.23
7.0.00.0040.00815.23
5.6.300.0060.05420.82
5.6.290.0060.04420.79
5.6.280.0160.07020.91
5.6.270.0060.04220.74
5.6.260.0030.04620.76
5.6.250.0030.04520.85
5.6.240.0040.05920.82
5.6.230.0000.05120.91
5.6.220.0110.04020.83
5.6.210.0080.04620.57
5.6.200.0030.05820.94
5.6.190.0100.07320.93
5.6.180.0170.03520.82
5.6.170.0000.07320.94
5.6.160.0030.08820.78
5.6.150.0030.04420.82
5.6.140.0030.04620.94
5.6.130.0030.04020.71
5.6.120.0070.07020.77
5.6.110.0030.08520.77
5.6.100.0090.03520.88
5.6.90.0100.07120.86
5.6.80.0100.07520.27
5.6.70.0000.04620.31
5.6.60.0060.08020.16
5.6.50.0000.05820.14
5.6.40.0100.04820.13
5.6.30.0030.06420.23
5.6.20.0000.07020.12
5.6.10.0070.07720.21
5.6.00.0000.05320.25
5.5.380.0070.05217.44
5.5.370.0130.05217.53
5.5.360.0030.04317.45
5.5.350.0150.07217.51
5.5.340.0070.04218.09
5.5.330.0000.04418.09
5.5.320.0030.04317.86
5.5.310.0000.06718.00
5.5.300.0000.04517.70
5.5.290.0000.06718.02
5.5.280.0000.09417.70
5.5.270.0030.04218.06
5.5.260.0070.08018.02
5.5.250.0070.06617.89
5.5.240.0070.05017.50
5.5.230.0030.05617.51
5.5.220.0000.05217.49
5.5.210.0070.04417.13
5.5.200.0030.03717.37
5.5.190.0070.04217.44
5.5.180.0000.04617.41
5.5.160.0130.06217.47
5.5.150.0030.04017.52
5.5.140.0070.04617.48
5.5.130.0000.04617.43
5.5.120.0000.04217.44
5.5.110.0030.04717.47
5.5.100.0040.05017.34
5.5.90.0100.03717.34
5.5.80.0070.04817.23
5.5.70.0030.03916.94
5.5.60.0030.03817.30
5.5.50.0030.04017.10
5.5.40.0030.03717.25
5.5.30.0030.04117.27
5.5.20.0000.04716.93
5.5.10.0000.04817.33
5.5.00.0030.04117.24
5.4.450.0130.07219.23
5.4.440.0030.04319.45
5.4.430.0090.03519.48
5.4.420.0030.03919.30
5.4.410.0060.04519.09
5.4.400.0000.04419.12
5.4.390.0030.04318.89
5.4.380.0030.04019.21
5.4.370.0030.03719.21
5.4.360.0030.03919.06
5.4.350.0130.04618.95
5.4.340.0100.07319.06
5.4.320.0030.04518.97
5.4.310.0130.04318.94
5.4.300.0070.03319.20
5.4.290.0130.03219.08
5.4.280.0000.04319.21
5.4.270.0000.04018.98
5.4.260.0030.07918.92
5.4.250.0030.05418.91
5.4.240.0070.04119.22
5.4.230.0060.04919.13
5.4.220.0030.04719.20
5.4.210.0000.04019.23
5.4.200.0030.05818.98
5.4.190.0000.08119.06
5.4.180.0070.06819.15
5.4.170.0000.04318.96
5.4.160.0100.03119.19
5.4.150.0000.04919.04
5.4.140.0070.05616.83
5.4.130.0000.04016.62
5.4.120.0000.04116.81
5.4.110.0060.05216.76
5.4.100.0030.03716.83
5.4.90.0030.03716.69
5.4.80.0000.03916.68
5.4.70.0070.03016.79
5.4.60.0000.05016.61
5.4.50.0060.03116.61
5.4.40.0000.08416.61
5.4.30.0030.05916.70
5.4.20.0070.04016.76
5.4.10.0030.03516.61
5.4.00.0060.03215.91
5.3.290.0070.04515.23
5.3.280.0000.03915.23
5.3.270.0060.03615.23
5.3.260.0100.03115.23
5.3.250.0070.03215.23
5.3.240.0030.05915.23
5.3.230.0000.04515.23
5.3.220.0070.06315.23
5.3.210.0060.04115.23
5.3.200.0000.05715.23
5.3.190.0070.05615.23
5.3.180.0030.03615.23
5.3.170.0040.03515.23
5.3.160.0030.04215.23
5.3.150.0060.06415.23
5.3.140.0060.05515.23
5.3.130.0000.09315.23
5.3.120.0000.04515.23
5.3.110.0000.04215.23
5.3.100.0070.03315.23
5.3.90.0030.04315.23
5.3.80.0070.03115.23
5.3.70.0000.03715.23
5.3.60.0070.05315.23
5.3.50.0030.03515.23
5.3.40.0000.06215.23
5.3.30.0030.03415.23
5.3.20.0000.04115.23
5.3.10.0030.03715.23
5.3.00.0030.03915.23
5.2.170.0030.03115.23
5.2.160.0030.02815.23
5.2.150.0040.03215.23
5.2.140.0000.03315.23
5.2.130.0090.02215.23
5.2.120.0000.03115.23
5.2.110.0030.03215.23
5.2.100.0040.02815.23
5.2.90.0030.02715.23
5.2.80.0060.02615.23
5.2.70.0100.02615.23
5.2.60.0040.02815.23
5.2.50.0040.02815.23
5.2.40.0030.02915.23
5.2.30.0070.02415.23
5.2.20.0000.03015.23
5.2.10.0100.03415.23
5.2.00.0030.02615.23
5.1.60.0000.02615.23
5.1.50.0000.02715.23
5.1.40.0030.02515.23
5.1.30.0060.02415.23
5.1.20.0040.02815.23
5.1.10.0030.02515.23
5.1.00.0000.02815.23
5.0.50.0000.02215.23
5.0.40.0000.02315.23
5.0.30.0000.03315.23
5.0.20.0000.02115.23
5.0.10.0030.01915.23
5.0.00.0030.03515.23
4.4.90.0000.01815.23
4.4.80.0030.01515.23
4.4.70.0000.01615.23
4.4.60.0060.01215.23
4.4.50.0030.01515.23
4.4.40.0000.02915.23
4.4.30.0000.01615.23
4.4.20.0030.01315.23
4.4.10.0030.01615.23
4.4.00.0000.02615.23
4.3.110.0100.01315.23
4.3.100.0030.01415.23
4.3.90.0000.01615.23
4.3.80.0000.02715.23
4.3.70.0000.01715.23
4.3.60.0030.01315.23
4.3.50.0000.01815.23
4.3.40.0030.02315.23
4.3.30.0040.01415.23
4.3.20.0040.01515.23
4.3.10.0000.01715.23
4.3.00.0030.02015.23

preferences:
47.73 ms | 401 KiB | 5 Q