3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FooInterface { public function dump(self $baz); } class Foo implements FooInterface { public function dump(self $baz) { var_dump($baz); } } class Bar extends Foo { public function dump(Foo $baz) { parent::dump($baz); } } (new Foo)->dump(new Bar); //(new Bar)->dump(new Bar); //(new Bar)->dump(new Foo);

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.01018.68
8.3.50.0100.01222.05
8.3.40.0140.00318.67
8.3.30.0090.00618.92
8.3.20.0000.00720.30
8.3.10.0030.00620.48
8.3.00.0060.00319.66
8.2.180.0140.00716.38
8.2.170.0120.00622.96
8.2.160.0100.01020.35
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00022.06
8.2.110.0080.00022.26
8.2.100.0000.01117.78
8.2.90.0090.00019.09
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0030.00617.80
8.2.50.0040.00419.10
8.2.40.0030.00618.16
8.2.30.0080.00019.25
8.2.20.0000.00717.68
8.2.10.0060.00318.00
8.2.00.0050.00317.49
8.1.280.0180.00425.92
8.1.270.0050.00322.25
8.1.260.0020.00526.35
8.1.250.0070.00028.09
8.1.240.0000.01023.96
8.1.230.0040.00819.15
8.1.220.0100.00017.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0040.00417.22
8.1.180.0000.00818.10
8.1.170.0050.00318.63
8.1.160.0000.00722.00
8.1.150.0050.00318.84
8.1.140.0020.00517.43
8.1.130.0000.00717.76
8.1.120.0030.00317.31
8.1.110.0030.00517.41
8.1.100.0040.00417.42
8.1.90.0070.00017.43
8.1.80.0000.00817.30
8.1.70.0030.00317.37
8.1.60.0060.00317.50
8.1.50.0000.00917.49
8.1.40.0030.00617.34
8.1.30.0000.00817.59
8.1.20.0040.00417.47
8.1.10.0040.00417.36
8.1.00.0050.00317.23
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00718.38
8.0.270.0030.00317.22
8.0.260.0030.00317.14
8.0.250.0030.00316.81
8.0.240.0040.00416.85
8.0.230.0030.00316.98
8.0.220.0030.00316.77
8.0.210.0030.00316.95
8.0.200.0030.00316.93
8.0.190.0000.00716.96
8.0.180.0040.00416.94
8.0.170.0000.00916.96
8.0.160.0020.00516.76
8.0.150.0030.00316.83
8.0.140.0000.00716.89
8.0.130.0060.00013.29
8.0.120.0050.00316.83
8.0.110.0040.00416.84
8.0.100.0040.00417.00
8.0.90.0080.00016.78
8.0.80.0030.01216.89
8.0.70.0040.00416.95
8.0.60.0040.00416.79
8.0.50.0080.00016.89
8.0.30.0090.01017.15
8.0.20.0090.00917.40
8.0.10.0000.00716.81
8.0.00.0100.00916.77
7.4.330.0030.00315.00
7.4.320.0080.00016.52
7.4.300.0000.00716.58
7.4.290.0000.00716.33
7.4.280.0040.00416.38
7.4.270.0070.00016.42
7.4.260.0040.00416.40
7.4.250.0040.00416.55
7.4.240.0030.00316.50
7.4.230.0050.00216.64
7.4.220.0030.01316.58
7.4.210.0070.00716.49
7.4.200.0070.00016.42
7.4.160.0130.00316.39
7.4.150.0100.01017.40
7.4.140.0070.01017.86
7.4.130.0100.00616.57
7.4.120.0100.00616.33
7.4.110.0090.00916.52
7.4.100.0130.01016.37
7.4.90.0100.00716.45
7.4.80.0090.00916.64
7.4.70.0030.01316.35
7.4.60.0090.00616.52
7.4.50.0040.00416.57
7.4.40.0110.00516.47
7.4.30.0160.00016.50
7.4.00.0100.00714.83
7.3.330.0030.00313.32
7.3.320.0020.00213.20
7.3.310.0070.00016.25
7.3.300.0030.00316.11
7.3.290.0070.01016.22
7.3.280.0110.00416.19
7.3.270.0110.00617.40
7.3.260.0070.01016.12
7.3.250.0130.00516.37
7.3.240.0130.01016.38
7.3.230.0100.00716.39
7.3.210.0050.01316.55
7.3.200.0150.00619.39
7.3.190.0070.01016.31
7.3.180.0060.01016.42
7.3.170.0090.00816.30
7.3.160.0130.00416.37
7.3.120.0120.00614.81
7.3.110.0140.00314.39
7.3.100.0080.00814.88
7.3.90.0000.00914.92
7.3.80.0070.00714.93
7.3.70.0070.00714.83
7.3.60.0040.00714.61
7.3.50.0130.00314.74
7.3.40.0040.01114.86
7.3.30.0060.00614.80
7.3.20.0040.00716.56
7.3.10.0030.00916.55
7.3.00.0070.01016.49
7.2.330.0130.00516.38
7.2.320.0150.00716.23
7.2.310.0000.01716.20
7.2.300.0180.00316.51
7.2.290.0120.00616.55
7.2.250.0040.01115.09
7.2.240.0100.01014.61
7.2.230.0060.00914.76
7.2.220.0120.00414.86
7.2.210.0070.01114.78
7.2.200.0070.00715.04
7.2.190.0090.00914.82
7.2.180.0030.01014.82
7.2.170.0090.00614.81
7.2.80.0060.00616.71
7.2.60.0030.00716.49
7.2.00.0030.00819.27
7.1.330.0060.00615.37
7.1.320.0060.00815.48
7.1.310.0060.01015.43
7.1.300.0100.00315.69
7.1.290.0060.00915.32
7.1.280.0040.01115.55
7.1.270.0090.00015.56
7.1.260.0040.01215.41
7.1.200.0040.00815.61
7.1.100.0070.00718.09
7.1.70.0000.00717.12
7.1.60.0100.01319.32
7.1.50.0030.01916.76
7.1.00.0070.07322.37
7.0.200.0100.00016.75
7.0.140.0070.06321.96
7.0.60.0130.07721.70
7.0.50.0030.04317.83
7.0.40.0070.04720.24
7.0.30.0300.08020.23
7.0.20.0170.05020.22
7.0.10.0130.03720.12
7.0.00.0030.04320.20
5.6.280.0030.07321.15
5.6.210.0100.07320.63
5.6.200.0130.04718.19
5.6.190.0070.08020.75
5.6.180.0230.03720.63
5.6.170.0300.07720.54
5.6.160.0070.07020.57
5.6.150.0070.08318.16
5.6.140.0100.07718.15
5.6.130.0070.08318.11
5.6.120.0030.05320.99
5.6.110.0100.08021.01
5.6.100.0030.06020.98
5.6.90.0070.08720.98
5.6.80.0100.06720.51
5.5.350.0200.04020.35
5.5.340.0100.04717.98
5.5.330.0100.03720.21
5.5.320.0200.04720.35
5.5.310.0370.06720.27
5.5.300.0130.06017.98
5.5.290.0130.08018.02
5.5.280.0070.07320.76
5.5.270.0100.08320.73
5.5.260.0100.08320.97
5.5.250.0130.05720.61
5.5.240.0100.07720.26
5.4.450.4470.03719.51
5.4.440.0130.07319.45
5.4.430.1070.04319.38
5.4.420.3070.04319.26
5.4.410.3400.03719.41
5.4.400.3670.04019.07
5.4.390.3530.03719.22
5.4.380.4030.03718.93
5.4.370.0030.04019.13
5.4.360.2470.05319.11
5.4.350.4800.03019.13
5.4.340.4730.04018.93
5.4.320.4430.04018.92
5.4.310.3770.03719.12
5.4.300.3830.03718.92
5.4.290.0500.03718.93
5.4.280.0070.07718.92
5.4.270.3830.04319.24
5.4.260.3830.03318.96
5.4.250.4000.04319.09
5.4.240.3630.03718.95
5.4.230.4600.03319.21
5.4.220.4370.04319.21
5.4.210.4230.04319.15
5.4.200.4530.03319.13
5.4.190.4100.03319.12
5.4.180.4400.03319.13
5.4.170.3700.04019.17
5.4.160.3800.03718.94
5.4.150.3830.04319.10
5.4.140.3730.03716.39
5.4.130.4000.03316.54
5.4.120.3800.03316.44
5.4.110.4400.04316.29
5.4.100.3870.03716.53
5.4.90.3730.03016.56
5.4.80.3930.03716.29
5.4.70.4430.03316.49
5.4.60.4000.04016.20
5.4.50.3800.04016.46
5.4.40.4170.03716.45
5.4.30.3970.04016.41
5.4.20.3670.03016.53
5.4.10.4130.04016.34
5.4.00.3800.03715.89
5.3.290.3930.03714.70
5.3.280.4470.04714.76
5.3.270.4600.04014.62
5.3.260.3830.04014.78
5.3.250.3900.03314.66
5.3.240.3900.04014.62
5.3.230.3670.03714.68
5.3.220.3830.03314.57
5.3.210.4400.04014.57
5.3.200.4070.03314.73
5.3.190.4430.03314.61
5.3.180.4370.03314.57
5.3.170.4400.04014.63
5.3.160.3600.04014.66
5.3.150.3570.03714.62
5.3.140.3870.03714.58
5.3.130.3870.04014.71
5.3.120.4000.04014.48
5.3.110.3600.03314.57
5.3.100.4170.03714.10
5.3.90.3870.03714.05
5.3.80.3770.03714.03
5.3.70.3930.03014.07
5.3.60.3930.03314.04
5.3.50.3870.03714.10
5.3.40.3870.04313.97
5.3.30.3930.03713.80
5.3.20.4530.02313.64
5.3.10.4500.03013.63
5.3.00.4230.03313.66
5.2.170.3170.03011.12
5.2.160.3270.03011.12
5.2.150.2970.04011.21
5.2.140.3770.03011.30
5.2.130.3870.03011.16
5.2.120.4000.02711.15
5.2.110.3870.02311.03
5.2.100.3600.02711.11
5.2.90.3930.03011.18
5.2.80.4070.02711.01
5.2.70.3400.02311.16
5.2.60.3030.03011.21
5.2.50.3030.02711.12
5.2.40.2470.02711.02
5.2.30.2300.02310.93
5.2.20.2430.02711.11
5.2.10.3230.02310.85
5.2.00.2470.02310.64
5.1.60.2470.02710.02
5.1.50.2400.0279.91
5.1.40.2430.0279.91
5.1.30.2370.03010.38
5.1.20.2400.02710.31
5.1.10.2470.02310.07
5.1.00.2600.02010.09
5.0.50.1200.0238.46
5.0.40.1500.0208.39
5.0.30.1230.0308.28
5.0.20.1470.0208.18
5.0.10.1800.0208.16
5.0.00.1830.0308.15
4.4.90.1230.0135.78
4.4.80.1070.0205.89
4.4.70.1270.0135.80
4.4.60.1230.0135.86
4.4.50.1200.0135.89
4.4.40.1270.0205.81
4.4.30.1200.0175.88
4.4.20.1230.0135.85
4.4.10.1200.0175.90
4.4.00.1370.0235.86
4.3.110.1430.0205.83
4.3.100.1570.0175.81
4.3.90.1570.0205.80
4.3.80.1830.0275.67
4.3.70.1770.0135.71
4.3.60.1500.0175.75
4.3.50.1970.0175.67
4.3.40.1730.0235.70
4.3.30.0270.0335.50
4.3.20.0970.0235.50
4.3.10.1030.0205.50
4.3.00.1070.0135.50

preferences:
42.3 ms | 401 KiB | 5 Q