3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base {} class Sub extends Base{} class NoRelation {} interface I { public function foo(Sub $x); } class CorrectImplementor implements I { public function foo(Base $x) {} // Should be ok } class IncorrectImplementor implements I { public function foo(NoRelation $x) {} // Should be disallowed }

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.01418.43
8.3.50.0100.00822.05
8.3.40.0100.01318.89
8.3.30.0180.00418.63
8.3.20.0050.00320.14
8.3.10.0080.00020.24
8.3.00.0070.00021.91
8.2.180.0000.01518.38
8.2.170.0040.01122.96
8.2.160.0130.00721.91
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0050.00321.11
8.2.120.0040.00426.35
8.2.110.0060.00320.99
8.2.100.0050.00517.80
8.2.90.0030.00518.87
8.2.80.0040.00417.97
8.2.70.0090.00017.63
8.2.60.0000.00717.80
8.2.50.0040.00418.09
8.2.40.0030.00520.41
8.2.30.0050.00319.25
8.2.20.0040.00417.58
8.2.10.0050.00217.88
8.2.00.0040.00418.04
8.1.280.0100.00725.92
8.1.270.0030.00622.18
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0000.01022.43
8.1.230.0000.01117.71
8.1.220.0000.00717.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0060.00317.23
8.1.180.0030.00618.10
8.1.170.0030.00718.59
8.1.160.0000.00720.67
8.1.150.0040.00618.82
8.1.140.0040.00419.52
8.1.130.0030.00317.64
8.1.120.0030.00317.41
8.1.110.0000.00817.36
8.1.100.0000.00817.40
8.1.90.0030.00517.29
8.1.80.0040.00417.29
8.1.70.0000.00717.29
8.1.60.0060.00617.47
8.1.50.0000.00817.43
8.1.40.0060.00317.41
8.1.30.0030.00617.42
8.1.20.0070.00017.37
8.1.10.0000.00717.32
8.1.00.0040.00417.30
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.30
8.0.270.0050.00217.30
8.0.260.0030.00317.11
8.0.250.0000.00716.98
8.0.240.0000.00816.97
8.0.230.0000.00616.87
8.0.220.0040.00416.89
8.0.210.0000.00716.79
8.0.200.0000.00716.90
8.0.190.0000.01016.93
8.0.180.0030.00616.91
8.0.170.0030.00516.98
8.0.160.0000.00816.88
8.0.150.0000.00816.86
8.0.140.0040.00716.83
8.0.130.0030.00313.28
8.0.120.0000.00716.90
8.0.110.0040.00416.92
8.0.100.0040.00416.85
8.0.90.0000.00716.75
8.0.80.0000.01916.83
8.0.70.0040.00416.91
8.0.60.0040.00416.88
8.0.50.0070.00016.86
8.0.30.0140.00216.97
8.0.20.0100.00817.40
8.0.10.0000.00816.97
8.0.00.0070.01116.78
7.4.330.0050.00016.74
7.4.320.0030.00316.59
7.4.300.0030.00316.44
7.4.290.0030.00316.54
7.4.280.0040.00416.44
7.4.270.0030.00316.52
7.4.260.0080.00016.34
7.4.250.0030.00316.39
7.4.240.0070.00016.54
7.4.230.0040.00416.65
7.4.220.0100.00716.47
7.4.210.0110.00616.44
7.4.200.0000.00716.44
7.4.160.0130.00316.45
7.4.150.0120.00617.40
7.4.140.0120.00617.86
7.4.130.0090.00716.52
7.4.120.0100.00616.49
7.4.110.0110.00616.45
7.4.100.0170.00016.38
7.4.90.0110.00716.52
7.4.80.0130.00319.39
7.4.70.0130.01016.29
7.4.60.0090.00916.47
7.4.50.0100.00716.61
7.4.40.0090.00616.49
7.4.30.0140.00316.50
7.4.00.0060.01015.00
7.3.330.0060.00013.06
7.3.320.0050.00013.30
7.3.310.0000.00816.33
7.3.300.0070.00016.18
7.3.290.0000.00616.19
7.3.280.0100.00716.21
7.3.270.0110.00717.40
7.3.260.0100.01016.59
7.3.250.0110.01016.31
7.3.240.0080.00816.34
7.3.230.0030.02116.39
7.3.210.0040.01416.35
7.3.200.0090.00616.13
7.3.190.0070.01316.39
7.3.180.0090.00916.24
7.3.170.0130.01016.31
7.3.160.0120.00316.27
7.3.120.0030.01614.63
7.3.110.0050.01414.89
7.3.100.0100.00714.80
7.3.90.0110.00414.70
7.3.80.0050.01014.54
7.3.70.0030.00814.55
7.3.60.0070.00714.60
7.3.50.0050.01114.62
7.3.40.0070.00514.71
7.3.30.0010.01114.84
7.3.20.0070.00516.46
7.3.10.0060.00616.59
7.3.00.0090.00716.42
7.2.330.0130.00316.62
7.2.320.0150.00916.52
7.2.310.0090.01316.36
7.2.300.0030.01316.66
7.2.290.0060.01016.50
7.2.250.0140.00414.91
7.2.240.0060.01014.87
7.2.230.0060.00814.77
7.2.220.0000.01414.93
7.2.210.0050.00914.89
7.2.200.0070.00314.79
7.2.190.0060.00614.81
7.2.180.0050.01314.80
7.2.170.0030.01214.78
7.2.130.0040.01216.74
7.2.120.0080.00416.48
7.2.110.0000.01416.75
7.2.100.0030.00816.75
7.2.90.0000.01716.88
7.2.80.0120.00416.54
7.2.70.0000.01516.95
7.2.60.0050.01016.66
7.2.50.0030.01016.91
7.2.40.0040.01116.66
7.2.30.0030.01416.77
7.2.20.0000.01016.85
7.2.10.0130.00016.93
7.2.00.0070.00818.08
7.1.330.0050.00915.51
7.1.320.0050.01015.46
7.1.310.0040.01015.81
7.1.300.0030.00915.39
7.1.290.0070.00915.74
7.1.280.0000.01115.50
7.1.270.0060.00415.61
7.1.260.0030.01115.58
7.1.250.0060.00815.66
7.1.200.0070.00715.59
7.1.100.0080.00417.98
7.1.70.0030.00617.01
7.1.60.0120.01219.27
7.1.50.0000.01016.75
7.1.00.0070.07322.51
7.0.200.0000.01116.70
7.0.60.0400.07319.98
7.0.50.0070.03717.89
7.0.40.0100.07720.27
7.0.30.0370.07720.33
7.0.20.0200.05320.10
7.0.10.0070.05320.22
7.0.00.0070.08020.22
5.6.280.0000.05021.07
5.6.210.0030.08320.47
5.6.200.0130.07718.19
5.6.190.0030.04320.52
5.6.180.0270.06720.58
5.6.170.0370.06720.51
5.6.160.0170.06320.55
5.6.150.0070.08018.25
5.6.140.0070.07018.17
5.6.130.0130.07318.21
5.6.120.0030.04721.04
5.6.110.0070.08721.04
5.6.100.0100.03321.02
5.6.90.0030.04020.99
5.6.80.0100.06320.52
5.5.350.0200.09020.41
5.5.340.0070.04017.93
5.5.330.0100.06320.25
5.5.320.0270.08320.20
5.5.310.0270.08020.56
5.5.300.0000.05717.95
5.5.290.0170.05718.01
5.5.280.0030.05020.78
5.5.270.0030.04320.73
5.5.260.0200.07020.77
5.5.250.0070.04720.77
5.5.240.0070.07320.36

preferences:
42.34 ms | 401 KiB | 5 Q