3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Base {} class Sub extends Base{} class NoRelation {} abstract class I { public function foo(Sub $x) {} } class CorrectImplementor extends I { public function foo(Base $x) {} // Should be ok } class IncorrectImplementor extends 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.0160.00618.49
8.3.50.0120.00821.98
8.3.40.0110.01118.74
8.3.30.0090.00618.59
8.3.20.0000.00720.33
8.3.10.0050.00320.44
8.3.00.0080.00021.82
8.2.180.0140.00018.41
8.2.170.0120.00322.96
8.2.160.0100.00322.13
8.2.150.0050.00224.18
8.2.140.0000.00824.66
8.2.130.0000.00721.13
8.2.120.0080.00026.35
8.2.110.0100.00019.39
8.2.100.0120.00017.78
8.2.90.0090.00019.76
8.2.80.0040.00417.97
8.2.70.0050.00217.80
8.2.60.0030.00617.80
8.2.50.0030.00618.10
8.2.40.0000.00820.65
8.2.30.0000.00719.26
8.2.20.0050.00217.44
8.2.10.0000.00718.04
8.2.00.0000.00718.02
8.1.280.0100.00725.92
8.1.270.0080.00022.23
8.1.260.0040.00428.09
8.1.250.0070.00028.09
8.1.240.0040.00422.25
8.1.230.0080.00320.97
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0080.00017.23
8.1.190.0050.00316.88
8.1.180.0040.00418.10
8.1.170.0090.00018.53
8.1.160.0050.00322.15
8.1.150.0030.00618.87
8.1.140.0040.00419.44
8.1.130.0000.00717.45
8.1.120.0020.00517.28
8.1.110.0040.00417.32
8.1.100.0000.00717.37
8.1.90.0000.00817.27
8.1.80.0000.00717.34
8.1.70.0030.00317.34
8.1.60.0040.00917.44
8.1.50.0040.00417.38
8.1.40.0060.00317.41
8.1.30.0040.00417.50
8.1.20.0040.00417.39
8.1.10.0000.00717.38
8.1.00.0050.00317.35
8.0.300.0000.00719.90
8.0.290.0070.00016.63
8.0.280.0030.00618.32
8.0.270.0040.00417.18
8.0.260.0030.00317.20
8.0.250.0000.00816.80
8.0.240.0050.00316.85
8.0.230.0040.00416.90
8.0.220.0040.00416.82
8.0.210.0030.00316.84
8.0.200.0030.00316.90
8.0.190.0070.00316.88
8.0.180.0000.00916.82
8.0.170.0000.00716.89
8.0.160.0070.00016.73
8.0.150.0040.00416.88
8.0.140.0060.00616.71
8.0.130.0000.00613.27
8.0.120.0040.00416.78
8.0.110.0080.00016.72
8.0.100.0040.00416.63
8.0.90.0020.00516.89
8.0.80.0080.01216.82
8.0.70.0000.00716.70
8.0.60.0040.00416.70
8.0.50.0040.00416.82
8.0.30.0110.00617.02
8.0.20.0070.01017.40
8.0.10.0050.00216.80
8.0.00.0070.01016.56
7.4.330.0050.00016.79
7.4.320.0030.00316.39
7.4.300.0060.00016.31
7.4.290.0000.00716.28
7.4.280.0000.00816.45
7.4.270.0000.00716.39
7.4.260.0070.00016.48
7.4.250.0000.00716.42
7.4.240.0030.00316.43
7.4.230.0080.00016.13
7.4.220.0030.01416.43
7.4.210.0030.01016.46
7.4.200.0030.00316.57
7.4.160.0060.00916.37
7.4.150.0070.01017.40
7.4.140.0150.00617.86
7.4.130.0070.01216.27
7.4.120.0090.00916.47
7.4.110.0090.00916.43
7.4.100.0060.01116.52
7.4.90.0100.00716.30
7.4.80.0100.01319.39
7.4.70.0100.01316.45
7.4.60.0090.00916.33
7.4.50.0100.00516.37
7.4.40.0130.00316.47
7.4.30.0140.00316.44
7.4.00.0080.00815.13
7.3.330.0060.00013.08
7.3.320.0000.00513.32
7.3.310.0000.00716.11
7.3.300.0030.00316.11
7.3.290.0030.00316.22
7.3.280.0120.00716.23
7.3.270.0120.00417.40
7.3.260.0160.00616.18
7.3.250.0120.00616.31
7.3.240.0110.00816.30
7.3.230.0110.00716.39
7.3.210.0100.00716.17
7.3.200.0100.00716.30
7.3.190.0100.00716.24
7.3.180.0120.00616.21
7.3.170.0090.01016.26
7.3.160.0100.00616.38
7.3.10.0070.00716.76
7.3.00.0140.00316.70
7.2.330.0030.01416.29
7.2.320.0140.01016.36
7.2.310.0150.01416.46
7.2.300.0130.00316.14
7.2.290.0060.00916.45
7.2.130.0100.00716.76
7.2.120.0040.01216.78
7.2.110.0030.01016.51
7.2.100.0070.00716.94
7.2.90.0060.00916.68
7.2.80.0060.00916.77
7.2.70.0090.00616.76
7.2.60.0030.01216.89
7.2.50.0120.00316.48
7.2.40.0030.00716.72
7.2.30.0000.01816.86
7.2.20.0130.00316.65
7.2.10.0000.01416.78
7.2.00.0050.01217.95
7.1.250.0060.00315.73
7.1.200.0030.01015.63
7.1.100.0080.00417.64
7.1.70.0000.00816.67
7.1.60.0060.01919.27
7.1.50.0130.00716.92
7.1.00.0030.07722.40
7.0.200.0060.00616.52
7.0.100.0100.05719.95
7.0.90.0270.09019.93
7.0.80.0000.09019.87
7.0.70.0130.07319.96
7.0.60.0330.05719.93
7.0.50.0230.08720.38
7.0.40.0070.08320.04
7.0.30.0100.07020.07
7.0.20.0100.07720.12
7.0.10.0130.05320.05
7.0.00.0170.07720.12
5.6.280.0030.04721.16
5.6.250.0070.08320.60
5.6.240.0000.08020.52
5.6.230.0000.08320.51
5.6.220.0070.07720.59
5.6.210.0000.08020.61
5.6.200.0170.08320.95
5.6.190.0000.08720.96
5.6.180.0130.04721.04
5.6.170.0070.08321.09
5.6.160.0070.07021.05
5.6.150.0130.04321.06
5.6.140.0100.08021.02
5.6.130.0030.05021.11
5.6.120.0070.05720.96
5.6.110.0070.08021.14
5.6.100.0100.05720.95
5.6.90.0170.06721.12
5.6.80.0100.07720.36
5.6.70.0100.06320.42
5.6.60.0070.07320.33
5.6.50.0130.07720.32
5.6.40.0070.08320.31
5.6.30.0130.07320.41
5.6.20.0200.06320.42
5.6.10.0070.08020.54
5.6.00.0030.04720.34
5.5.380.0170.05720.43
5.5.370.0100.07720.36
5.5.360.0070.04720.34
5.5.350.0070.09020.46
5.5.340.0030.08020.89
5.5.330.0030.08320.94
5.5.320.0130.07720.93
5.5.310.0070.08320.65
5.5.300.0030.09320.88
5.5.290.0000.04720.94
5.5.280.0070.08320.88
5.5.270.0030.09720.92
5.5.260.0170.07720.79
5.5.250.0170.07720.62
5.5.240.0030.08020.13
5.5.230.0130.06720.28
5.5.220.0000.06320.24
5.5.210.0130.06020.18
5.5.200.0070.05720.25
5.5.190.0130.04720.13
5.5.180.0070.07720.14
5.5.160.0070.08020.23
5.5.150.0030.07320.00
5.5.140.0030.04020.12
5.5.130.0070.04020.13
5.5.120.0030.04020.24
5.5.110.0070.03320.18
5.5.100.0030.06020.13
5.5.90.0070.04320.08
5.5.80.0030.04020.09
5.5.70.0030.04020.16
5.5.60.0070.05020.15
5.5.50.0070.03720.06
5.5.40.0070.03720.09
5.5.30.0000.04320.06
5.5.20.0030.04320.04
5.5.10.0000.04320.14
5.5.00.0070.03320.05

preferences:
44.55 ms | 401 KiB | 5 Q