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.56
8.3.50.0070.01521.97
8.3.40.0130.00318.50
8.3.30.0040.01119.10
8.3.20.0040.00420.04
8.3.10.0030.00620.40
8.3.00.0040.00419.43
8.2.180.0110.01118.41
8.2.170.0100.01022.96
8.2.160.0100.00720.35
8.2.150.0030.00624.18
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00022.06
8.2.110.0090.00022.24
8.2.100.0040.00820.59
8.2.90.0050.00319.05
8.2.80.0080.00017.97
8.2.70.0040.00417.38
8.2.60.0000.00717.91
8.2.50.0030.00518.07
8.2.40.0030.00618.09
8.2.30.0000.00819.23
8.2.20.0000.00717.64
8.2.10.0040.00417.99
8.2.00.0000.00817.55
8.1.280.0000.01425.92
8.1.270.0080.00023.97
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00623.78
8.1.230.0070.00419.08
8.1.220.0060.00317.74
8.1.210.0070.00018.77
8.1.200.0030.00917.10
8.1.190.0030.00617.10
8.1.180.0060.00318.10
8.1.170.0070.00318.32
8.1.160.0050.00322.00
8.1.150.0040.00418.87
8.1.140.0000.00717.30
8.1.130.0000.00717.72
8.1.120.0070.00017.27
8.1.110.0000.00817.37
8.1.100.0000.00817.39
8.1.90.0030.00517.26
8.1.80.0000.00717.39
8.1.70.0030.00317.27
8.1.60.0030.00517.49
8.1.50.0000.00817.47
8.1.40.0030.00517.36
8.1.30.0000.00817.56
8.1.20.0060.00317.63
8.1.10.0040.00417.32
8.1.00.0040.00417.37
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.36
8.0.270.0000.00716.80
8.0.260.0030.00317.10
8.0.250.0030.00317.02
8.0.240.0000.00716.95
8.0.230.0000.00716.95
8.0.220.0030.00316.88
8.0.210.0030.00316.77
8.0.200.0040.00416.92
8.0.190.0110.00016.97
8.0.180.0000.00716.90
8.0.170.0060.00316.90
8.0.160.0030.00316.82
8.0.150.0040.00416.88
8.0.140.0070.00016.80
8.0.130.0000.00613.28
8.0.120.0000.00716.86
8.0.110.0040.00416.85
8.0.100.0000.00716.77
8.0.90.0040.00416.71
8.0.80.0060.01016.80
8.0.70.0040.00416.91
8.0.60.0050.00516.77
8.0.50.0080.00016.85
8.0.30.0090.01216.90
8.0.20.0050.01417.40
8.0.10.0030.00316.88
8.0.00.0090.00916.79
7.4.330.0000.00515.05
7.4.320.0060.00016.39
7.4.300.0060.00016.37
7.4.290.0030.00316.46
7.4.280.0030.00516.42
7.4.270.0070.00016.39
7.4.260.0070.00016.41
7.4.250.0040.00416.32
7.4.240.0020.00516.45
7.4.230.0030.00316.24
7.4.220.0070.01116.31
7.4.210.0030.01416.55
7.4.200.0040.00416.63
7.4.160.0220.00816.74
7.4.150.0100.00717.40
7.4.140.0100.00717.86
7.4.130.0110.00616.34
7.4.120.0130.00316.58
7.4.110.0030.01416.46
7.4.100.0200.00316.54
7.4.90.0120.00616.33
7.4.80.0110.00716.50
7.4.70.0030.01316.29
7.4.60.0130.00316.25
7.4.50.0040.00416.47
7.4.40.0140.00816.64
7.4.30.0100.00716.49
7.4.00.0070.01014.68
7.3.330.0030.00313.07
7.3.320.0000.00513.23
7.3.310.0050.00216.07
7.3.300.0070.00016.26
7.3.290.0060.00916.24
7.3.280.0120.00516.20
7.3.270.0060.01217.40
7.3.260.0130.00316.15
7.3.250.0100.01016.46
7.3.240.0090.01316.54
7.3.230.0060.00916.39
7.3.210.0100.00716.30
7.3.200.0210.00019.39
7.3.190.0030.01416.18
7.3.180.0070.01016.24
7.3.170.0180.00616.33
7.3.160.0080.01216.32
7.3.10.0040.00916.59
7.3.00.0040.01116.20
7.2.330.0080.01316.55
7.2.320.0070.01116.52
7.2.310.0000.01716.51
7.2.300.0090.01016.63
7.2.290.0030.01416.44
7.2.130.0040.01116.74
7.2.120.0150.00616.34
7.2.110.0130.00016.29
7.2.100.0030.00816.53
7.2.90.0030.01416.45
7.2.80.0050.00816.41
7.2.70.0040.01116.37
7.2.60.0130.00516.60
7.2.50.0130.01016.39
7.2.40.0130.00616.68
7.2.30.0120.00916.16
7.2.20.0160.00016.33
7.2.10.0180.00016.73
7.2.00.0090.00917.88
7.1.250.0100.00715.37
7.1.200.0060.00615.79
7.1.100.0000.01517.99
7.1.70.0050.00316.89
7.1.60.0130.01019.32
7.1.50.0040.00816.76
7.1.00.0070.07322.57
7.0.200.0030.00616.63
7.0.140.0100.06721.92
7.0.60.0070.07721.73
7.0.50.0170.05717.88
7.0.40.0030.04319.96
7.0.30.0100.05320.13
7.0.20.0170.04020.15
7.0.10.0070.05320.24
7.0.00.0100.06020.20
5.6.280.0070.06720.79
5.6.210.0070.08320.51
5.6.200.0000.05718.16
5.6.190.0100.03720.61
5.6.180.0230.04020.64
5.6.170.0230.08720.48
5.6.160.0100.07020.52
5.6.150.0100.07318.23
5.6.140.0070.08018.21
5.6.130.0070.08718.23
5.6.120.0100.08321.13
5.6.110.0130.07721.05
5.6.100.0270.06721.13
5.6.90.0130.08021.11
5.6.80.0130.07020.43
5.5.350.0070.08020.42
5.5.340.0030.08318.08
5.5.330.0000.04720.40
5.5.320.0270.04020.38
5.5.310.0300.07320.42
5.5.300.0100.06717.95
5.5.290.0070.05017.98
5.5.280.0100.08320.85
5.5.270.0030.04320.76
5.5.260.0030.09020.82
5.5.250.0030.08020.61
5.5.240.0070.04020.27
5.4.450.0100.03319.34
5.4.440.0070.03719.46
5.4.430.0030.03719.47
5.4.420.0000.04019.40
5.4.410.0030.04019.20
5.4.400.0100.06019.25
5.4.390.0030.04719.00
5.4.380.0070.04319.20
5.4.370.0070.03319.14
5.4.360.0070.07719.20
5.4.350.0030.07719.16
5.4.340.0030.05019.24
5.4.320.0000.04719.08
5.4.310.0070.05319.15
5.4.300.0100.03319.20
5.4.290.0130.06719.23
5.4.280.0030.04018.91
5.4.270.0030.04719.16
5.4.260.0100.06318.92
5.4.250.0030.03718.91
5.4.240.0030.03719.23
5.4.230.0000.05719.11
5.4.220.0030.03719.23
5.4.210.0030.04318.86
5.4.200.0030.04018.85
5.4.190.0030.03719.11
5.4.180.0100.03719.23
5.4.170.0070.07319.13
5.4.160.0030.05718.90
5.4.150.0000.04318.95
5.4.140.0100.06716.39
5.4.130.0070.07316.54
5.4.120.0030.03716.38
5.4.110.0030.08016.50
5.4.100.0200.06016.44
5.4.90.0030.05016.46
5.4.80.0030.05016.45
5.4.70.0070.03716.71
5.4.60.0000.04016.28
5.4.50.0030.03716.36
5.4.40.0030.03716.40
5.4.30.0030.03716.48
5.4.20.0070.03316.38
5.4.10.0000.04316.27
5.4.00.0030.03315.99
5.3.290.0000.04314.59
5.3.280.0030.03714.67
5.3.270.0030.06714.63
5.3.260.0030.07314.63
5.3.250.0030.05314.63
5.3.240.0070.05714.64
5.3.230.0100.05014.61
5.3.220.0030.03714.59
5.3.210.0030.04014.58
5.3.200.0030.07014.57
5.3.190.0070.04314.65
5.3.180.0030.04014.63
5.3.170.0070.05014.62
5.3.160.0070.03714.57
5.3.150.0070.03714.57
5.3.140.0030.03714.72
5.3.130.0070.05314.60
5.3.120.0030.04014.63
5.3.110.0070.03714.55
5.3.100.0000.04014.05
5.3.90.0100.04314.06
5.3.80.0030.05314.03
5.3.70.0000.04714.07
5.3.60.0030.03714.02
5.3.50.0070.04013.90
5.3.40.0100.03013.95
5.3.30.0130.04313.97
5.3.20.0130.04013.84
5.3.10.0000.06013.71
5.3.00.0030.04713.68
5.2.170.0000.03711.18
5.2.160.0000.03011.05
5.2.150.0000.03311.21
5.2.140.0070.03311.16
5.2.130.0000.03011.00
5.2.120.0170.05311.00
5.2.110.0070.05311.10
5.2.100.0000.03311.15
5.2.90.0070.04011.27
5.2.80.0000.03711.10
5.2.70.0000.03711.02
5.2.60.0070.04011.10
5.2.50.0030.04711.07
5.2.40.0070.02711.00
5.2.30.0000.03711.12
5.2.20.0030.04311.00
5.2.10.0100.04710.88
5.2.00.0070.03310.72
5.1.60.0000.05710.07
5.1.50.0000.0279.91
5.1.40.0000.03010.14
5.1.30.0070.02310.42
5.1.20.0030.02310.41
5.1.10.0030.0279.98
5.1.00.0030.02710.14
5.0.50.0000.0238.55
5.0.40.0030.0178.48
5.0.30.0030.0308.22
5.0.20.0000.0278.36
5.0.10.0070.0408.09
5.0.00.0000.0678.17
4.4.90.0000.0177.99
4.4.80.0000.0177.99
4.4.70.0030.0177.99
4.4.60.0000.0177.99
4.4.50.0030.0137.99
4.4.40.0000.0277.99
4.4.30.0030.0307.99
4.4.20.0000.0177.99
4.4.10.0000.0177.99
4.4.00.0030.0237.99
4.3.110.0100.0307.99
4.3.100.0000.0337.99
4.3.90.0000.0207.99
4.3.80.0000.0577.99
4.3.70.0100.0277.99
4.3.60.0000.0307.99
4.3.50.0000.0237.99
4.3.40.0000.0537.99
4.3.30.0070.0237.99
4.3.20.0030.0237.99
4.3.10.0000.0337.99
4.3.00.0030.0207.99

preferences:
39.23 ms | 400 KiB | 5 Q