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); } } $foo = new Foo; $foo->dump($foo); //(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.0100.00718.56
8.3.50.0070.01422.04
8.3.40.0090.00918.85
8.3.30.0140.00018.97
8.3.20.0050.00320.16
8.3.10.0050.00320.39
8.3.00.0000.00719.44
8.2.180.0070.00716.50
8.2.170.0140.00322.96
8.2.160.0100.01020.41
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0050.00222.22
8.2.110.0110.00019.19
8.2.100.0080.00317.78
8.2.90.0050.00318.92
8.2.80.0030.00617.97
8.2.70.0000.00817.50
8.2.60.0050.00317.68
8.2.50.0000.00818.10
8.2.40.0000.00920.55
8.2.30.0040.00419.09
8.2.20.0040.00417.54
8.2.10.0030.00517.89
8.2.00.0000.00817.62
8.1.280.0130.00925.92
8.1.270.0030.00522.14
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0100.00019.54
8.1.230.0080.00317.58
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.35
8.1.190.0080.00017.22
8.1.180.0040.00418.10
8.1.170.0040.00418.75
8.1.160.0040.00418.73
8.1.150.0030.00618.86
8.1.140.0020.00517.29
8.1.130.0040.00417.68
8.1.120.0030.00317.46
8.1.110.0050.00317.40
8.1.100.0050.00217.34
8.1.90.0000.00717.41
8.1.80.0000.00717.31
8.1.70.0070.00017.33
8.1.60.0060.00317.54
8.1.50.0000.00817.45
8.1.40.0080.00017.45
8.1.30.0050.00317.65
8.1.20.0090.00017.43
8.1.10.0000.00817.25
8.1.00.0070.00017.33
8.0.300.0050.00218.77
8.0.290.0090.00016.75
8.0.280.0000.00718.31
8.0.270.0000.00717.18
8.0.260.0030.00317.05
8.0.250.0030.00316.97
8.0.240.0030.00316.97
8.0.230.0030.00316.91
8.0.220.0000.00716.92
8.0.210.0030.00316.79
8.0.200.0000.00716.93
8.0.190.0000.00916.99
8.0.180.0050.00316.98
8.0.170.0050.00516.84
8.0.160.0040.00416.95
8.0.150.0040.00416.84
8.0.140.0000.00816.86
8.0.130.0030.00313.24
8.0.120.0040.00416.87
8.0.110.0000.00716.77
8.0.100.0080.00016.77
8.0.90.0050.00216.91
8.0.80.0100.00616.87
8.0.70.0000.00816.80
8.0.60.0000.00716.76
8.0.50.0040.00416.83
8.0.30.0090.00916.91
8.0.20.0080.01117.40
8.0.10.0040.00416.93
8.0.00.0080.01216.66
7.4.330.0000.00615.00
7.4.320.0030.00316.43
7.4.300.0030.00316.51
7.4.290.0050.00316.54
7.4.280.0040.00416.50
7.4.270.0080.00016.33
7.4.260.0000.00716.41
7.4.250.0040.00416.39
7.4.240.0050.00216.50
7.4.230.0050.00316.43
7.4.220.0130.01016.55
7.4.210.0030.01016.56
7.4.200.0020.00516.55
7.4.160.0130.00316.41
7.4.150.0110.00717.40
7.4.140.0080.00817.86
7.4.130.0050.01116.48
7.4.120.0120.00816.39
7.4.110.0080.00816.31
7.4.100.0060.01216.47
7.4.90.0060.01216.57
7.4.80.0070.01416.39
7.4.70.0130.00316.29
7.4.60.0030.01316.41
7.4.50.0030.00516.34
7.4.40.0130.00616.50
7.4.30.0130.00316.33
7.4.00.0000.01014.64
7.3.330.0060.00013.12
7.3.320.0000.00613.24
7.3.310.0030.00316.27
7.3.300.0030.00316.19
7.3.290.0110.00316.21
7.3.280.0030.01116.24
7.3.270.0130.00917.40
7.3.260.0000.01716.47
7.3.250.0090.00916.33
7.3.240.0060.01016.30
7.3.230.0100.01016.39
7.3.210.0110.00916.14
7.3.200.0060.01519.39
7.3.190.0090.01216.27
7.3.180.0110.01116.54
7.3.170.0090.00616.32
7.3.160.0080.00816.41
7.2.330.0100.00716.44
7.2.320.0060.01216.44
7.2.310.0090.01216.39
7.2.300.0100.00716.26
7.2.290.0040.01316.34
7.2.60.0140.00716.70
7.2.50.0060.00616.75
7.2.00.0040.01119.28
7.1.200.0030.00915.74
7.1.70.0040.00417.07
7.1.60.0090.01619.32
7.1.50.0250.00634.74
7.1.00.0070.07022.29
7.0.200.0070.00316.71
7.0.140.0070.07022.13
7.0.60.0070.06019.82
7.0.50.0130.07317.73
7.0.40.0070.04320.20
7.0.30.0300.05020.21
7.0.20.0130.06020.08
7.0.10.0070.04320.20
7.0.00.0170.08020.09
5.6.280.0030.07021.09
5.6.210.0100.07320.48
5.6.200.0070.04318.15
5.6.190.0030.04320.48
5.6.180.0500.07320.55
5.6.170.0200.03720.49
5.6.160.0100.07720.44
5.6.150.0030.08018.19
5.6.140.0070.08718.18
5.6.130.0100.03718.26
5.6.120.0030.05720.89
5.6.110.0100.05721.13
5.6.100.0030.08320.89
5.6.90.0170.06720.93
5.6.80.0070.04020.43
5.5.350.0170.08020.44
5.5.340.0000.06017.99
5.5.330.0030.04720.35
5.5.320.0300.06020.34
5.5.310.0200.08720.32
5.5.300.0100.08018.04
5.5.290.0030.04017.93
5.5.280.0100.06020.85
5.5.270.0130.08020.73
5.5.260.0030.08720.61
5.5.250.0130.07320.58
5.5.240.0170.06720.04
5.4.450.0270.05319.63
5.4.440.0970.05319.61
5.4.430.0670.06319.54
5.4.420.0830.04719.63
5.4.410.0970.05019.07
5.4.400.1000.05019.27
5.4.390.1030.05318.84
5.4.380.0300.06018.73
5.4.370.0470.05018.58
5.4.360.0500.06018.71
5.4.350.0400.05718.80
5.4.340.0200.06018.79
5.4.320.0070.03512.50
5.4.310.0070.04212.50
5.4.300.0090.03612.50
5.4.290.0050.04112.50
5.4.280.0040.04512.40
5.4.270.0080.04612.40
5.4.260.0050.04212.40
5.4.250.0060.04112.40
5.4.240.0070.03412.39
5.4.230.0040.03912.39
5.4.220.0040.03712.39
5.4.210.0060.03512.39
5.4.200.0110.03112.39
5.4.190.0080.03612.38
5.4.180.0050.03612.39
5.4.170.0060.04412.40
5.4.160.0060.03912.39
5.4.150.0060.03812.39
5.4.140.0060.04212.08
5.4.130.0070.04512.06
5.4.120.0050.03712.02
5.4.110.0100.03812.02
5.4.100.0050.03512.02
5.4.90.0080.04712.02
5.4.80.0050.04612.02
5.4.70.0060.03812.01
5.4.60.0040.04012.02
5.4.50.0120.03712.01
5.4.40.0040.04312.00
5.4.30.0060.03411.99
5.4.20.0060.03412.00
5.4.10.0030.03712.00
5.4.00.0080.03211.49
5.3.290.0060.03812.80
5.3.280.0060.03812.71
5.3.270.0040.04012.72
5.3.260.0070.03812.72
5.3.250.0040.03912.72
5.3.240.0080.03912.72
5.3.230.0050.03712.71
5.3.220.0030.03912.68
5.3.210.0070.03712.68
5.3.200.0090.03312.68
5.3.190.0040.03812.68
5.3.180.0100.04212.67
5.3.170.0060.04212.67
5.3.160.0100.03612.68
5.3.150.0060.04512.68
5.3.140.0120.02912.66
5.3.130.0090.04112.66
5.3.120.0090.04512.66
5.3.110.0080.04012.66
5.3.100.0030.04012.13
5.3.90.0090.04112.11
5.3.80.0070.04112.10
5.3.70.0040.03712.10
5.3.60.0070.03412.08
5.3.50.0060.03512.04
5.3.40.0080.03312.04
5.3.30.0080.03111.99
5.3.20.0060.03311.78
5.3.10.0050.03711.73
5.3.00.0040.03811.72
5.2.170.0070.0319.23
5.2.160.0100.0309.23
5.2.150.0070.0349.23
5.2.140.0050.0319.23
5.2.130.0050.0299.19
5.2.120.0030.0329.19
5.2.110.0070.0279.20
5.2.100.0040.0289.18
5.2.90.0090.0319.19
5.2.80.0060.0389.18
5.2.70.0070.0369.18
5.2.60.0060.0329.14
5.2.50.0040.0299.11
5.2.40.0130.0329.08
5.2.30.0070.0389.06
5.2.20.0080.0359.04
5.2.10.0030.0338.95
5.2.00.0050.0388.81
5.1.60.0070.0298.10
5.1.50.0060.0308.09
5.1.40.0040.0298.07
5.1.30.0060.0248.43
5.1.20.0070.0318.45
5.1.10.0080.0308.17
5.1.00.0050.0308.17
5.0.50.0030.0266.65
5.0.40.0030.0316.50
5.0.30.0060.0326.33
5.0.20.0040.0196.29
5.0.10.0030.0216.27
5.0.00.0050.0316.26
4.4.90.0040.0144.78
4.4.80.0050.0154.75
4.4.70.0020.0164.75
4.4.60.0050.0154.75
4.4.50.0040.0204.77
4.4.40.0040.0274.71
4.4.30.0050.0174.76
4.4.20.0050.0224.85
4.4.10.0060.0194.85
4.4.00.0060.0264.76
4.3.110.0040.0194.67
4.3.100.0030.0244.66
4.3.90.0030.0144.63
4.3.80.0040.0274.58
4.3.70.0060.0194.63
4.3.60.0020.0154.63
4.3.50.0030.0234.63
4.3.40.0040.0274.54
4.3.30.0030.0163.28
4.3.20.0020.0233.26
4.3.10.0030.0163.22
4.3.00.0100.0176.74

preferences:
45.35 ms | 401 KiB | 5 Q