3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private function thing() { var_dump('asdf'); } } class Bar extends Foo { private function thing() { parent::thing(); } public function getThing() { $this->thing(); } } class Baz extends Foo { private function thing() { var_dump('qwer'); } public function getThing() { $this->thing(); } } $bar = new Bar(); $bar->getThing(); $baz = new Baz(); $baz->getThing();

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.40.0140.00418.79
8.3.30.0150.00319.01
8.3.20.0070.00020.16
8.3.10.0040.00423.48
8.3.00.0030.00622.44
8.2.170.0140.00422.96
8.2.160.0130.00322.08
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00417.63
8.2.110.0060.00320.36
8.2.100.0040.00817.72
8.2.90.0040.00419.28
8.2.80.0030.00618.02
8.2.70.0030.00617.50
8.2.60.0040.00417.92
8.2.50.0050.00318.07
8.2.40.0030.00618.09
8.2.30.0030.00618.07
8.2.20.0040.00417.52
8.2.10.0050.00217.55
8.2.00.0040.00417.66
8.1.270.0080.00023.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00523.67
8.1.230.0040.00722.24
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0000.00817.36
8.1.190.0060.00317.53
8.1.180.0000.00818.10
8.1.170.0050.00318.53
8.1.160.0050.00221.93
8.1.150.0040.00418.61
8.1.140.0000.00717.36
8.1.130.0000.00717.69
8.1.120.0000.00717.43
8.1.110.0000.00717.36
8.1.100.0040.00417.28
8.1.90.0050.00517.30
8.1.80.0000.00717.41
8.1.70.0000.00717.29
8.1.60.0080.00317.57
8.1.50.0040.00417.50
8.1.40.0050.00317.52
8.1.30.0060.00317.64
8.1.20.0000.00817.69
8.1.10.0080.00017.46
8.1.00.0030.00617.46
8.0.300.0000.00718.77
8.0.290.0040.00417.04
8.0.280.0030.00518.29
8.0.270.0030.00617.19
8.0.260.0030.00316.87
8.0.250.0000.00717.01
8.0.240.0000.00816.92
8.0.230.0040.00416.95
8.0.220.0040.00416.89
8.0.210.0040.00416.89
8.0.200.0000.00616.88
8.0.190.0020.00516.86
8.0.180.0030.00316.91
8.0.170.0000.00816.96
8.0.160.0040.00416.91
8.0.150.0070.00016.91
8.0.140.0040.00416.87
8.0.130.0000.00513.24
8.0.120.0080.00016.76
8.0.110.0040.00416.79
8.0.100.0050.00316.83
8.0.90.0000.00716.88
8.0.80.0100.01016.77
8.0.70.0070.00016.87
8.0.60.0000.00816.86
8.0.50.0000.00816.68
8.0.30.0120.00717.02
8.0.20.0170.00517.40
8.0.10.0000.00716.92
8.0.00.0100.01016.83
7.4.330.0030.00315.06
7.4.320.0070.00016.54
7.4.300.0000.00716.59
7.4.290.0040.00416.51
7.4.280.0000.00716.59
7.4.270.0040.00716.48
7.4.260.0080.00016.45
7.4.250.0040.00416.53
7.4.240.0030.00516.58
7.4.230.0000.00716.39
7.4.220.0060.01216.46
7.4.210.0090.00716.65
7.4.200.0030.00316.40
7.4.190.0000.00716.43
7.4.160.0120.00316.62
7.4.150.0140.00317.40
7.4.140.0100.00817.86
7.4.130.0080.00916.52
7.4.120.0080.01016.54
7.4.110.0040.01516.50
7.4.100.0140.00716.48
7.4.90.0130.00316.46
7.4.80.0060.01116.27
7.4.70.0070.01016.36
7.4.60.0030.01416.57
7.4.50.0040.00416.35
7.4.40.0030.01122.77
7.4.30.0140.00716.49
7.4.00.0080.00914.95
7.3.330.0000.00513.36
7.3.320.0050.00013.36
7.3.310.0070.00016.22
7.3.300.0040.00416.43
7.3.290.0070.00716.38
7.3.280.0100.00816.36
7.3.270.0160.00317.40
7.3.260.0090.00916.38
7.3.250.0050.01216.43
7.3.240.0100.00616.32
7.3.230.0040.01316.39
7.3.210.0040.01216.28
7.3.200.0060.01119.39
7.3.190.0100.01016.26
7.3.180.0110.00616.30
7.3.170.0100.00616.40
7.3.160.0030.01216.54
7.3.120.0080.00914.93
7.3.110.0040.00815.02
7.3.100.0100.00614.64
7.3.90.0070.00314.51
7.3.80.0070.00714.95
7.3.70.0080.00414.77
7.3.60.0060.00314.63
7.3.50.0060.00614.61
7.3.40.0080.00814.64
7.3.30.0120.00614.37
7.3.20.0060.01216.67
7.3.10.0060.00616.68
7.3.00.0090.00316.71
7.2.330.0100.00716.52
7.2.320.0100.00716.58
7.2.310.0070.01116.66
7.2.300.0130.00316.54
7.2.290.0070.01116.74
7.2.250.0060.01215.16
7.2.240.0030.01415.14
7.2.230.0130.00314.75
7.2.220.0000.01114.86
7.2.210.0100.00314.87
7.2.200.0030.01414.83
7.2.190.0070.01014.96
7.2.180.0060.00314.86
7.2.170.0070.00714.95
7.2.60.0040.00816.79
7.2.00.0040.00419.00
7.1.330.0040.01115.77
7.1.320.0080.00415.76
7.1.310.0100.00315.33
7.1.300.0030.01015.76
7.1.290.0070.00715.79
7.1.280.0080.00415.45
7.1.270.0100.00315.64
7.1.260.0090.00415.41
7.1.200.0060.00615.72
7.1.100.0080.00417.88
7.1.70.0060.00617.13
7.1.60.0200.00319.24
7.1.50.0130.01016.95
7.1.00.0030.07722.43
7.0.200.0060.00316.69
7.0.140.0130.06721.96
7.0.60.0030.06320.00
7.0.50.0070.08017.89
7.0.40.0030.08320.31
7.0.30.0570.04720.45
7.0.20.0270.05720.23
7.0.10.0070.09020.15
7.0.00.0100.08320.20
5.6.280.0030.07321.14
5.6.210.0100.07720.72
5.6.200.0200.07318.16
5.6.190.0100.04320.50
5.6.180.0200.04320.52
5.6.170.0270.08020.55
5.6.160.0170.05320.49
5.6.150.0070.05718.16
5.6.140.0270.06018.18
5.6.130.0030.04018.18
5.6.120.0100.08320.98
5.6.110.0030.04320.98
5.6.100.0100.03721.00
5.6.90.0070.03721.01
5.6.80.0070.05020.52
5.5.350.0000.08320.39
5.5.340.0000.05018.08
5.5.330.0070.04020.07
5.5.320.0470.03020.23
5.5.310.0270.08020.27
5.5.300.0100.05718.02
5.5.290.0170.07018.04
5.5.280.0000.08720.74
5.5.270.0070.04720.74
5.5.260.0070.07320.88
5.5.250.0100.08020.60
5.5.240.0300.06720.18
5.4.450.0470.06319.56
5.4.440.0230.05319.72
5.4.430.0170.05019.56
5.4.420.0230.05319.18
5.4.410.0130.05319.50
5.4.400.0170.05319.07
5.4.390.0230.05019.13
5.4.380.0270.05318.79
5.4.370.0130.03718.73
5.4.360.0070.03718.49
5.4.350.0080.04012.03
5.4.340.0080.03512.02
5.4.320.0040.04012.52
5.4.310.0060.04112.51
5.4.300.0030.03812.52
5.4.290.0080.04012.50
5.4.280.0040.03712.41
5.4.270.0090.03412.40
5.4.260.0050.03712.41
5.4.250.0030.05412.41
5.4.240.0100.03612.41
5.4.230.0070.04212.39
5.4.220.0040.04012.39
5.4.210.0060.03612.39
5.4.200.0070.05512.39
5.4.190.0310.09612.39
5.4.180.0340.06412.39
5.4.170.0190.04412.39
5.4.160.0170.04712.39
5.4.150.0160.05212.39
5.4.140.0160.04612.07
5.4.130.0230.06812.06
5.4.120.0210.04012.02
5.4.110.0160.04612.01
5.4.100.0170.04712.02
5.4.90.0190.04312.01
5.4.80.0180.04212.01
5.4.70.0200.04612.01
5.4.60.0300.06612.00
5.4.50.0190.04112.01
5.4.40.0230.04312.00
5.4.30.0170.04611.99
5.4.20.0250.06712.00
5.4.10.0200.03811.99
5.4.00.0160.04411.48
5.3.290.0070.03912.80
5.3.280.0070.03812.70
5.3.270.0170.04712.73
5.3.260.0150.04712.71
5.3.250.0180.04512.72
5.3.240.0140.04912.72
5.3.230.0200.04312.71
5.3.220.0190.04012.68
5.3.210.0150.04912.68
5.3.200.0190.04512.68
5.3.190.0130.04912.68
5.3.180.0200.04612.67
5.3.170.0350.08912.67
5.3.160.0160.04712.67
5.3.150.0180.04312.67
5.3.140.0210.04612.66
5.3.130.0170.04912.66
5.3.120.0510.10712.66
5.3.110.0240.04912.66
5.3.100.0200.04612.13
5.3.90.0200.04912.11
5.3.80.0450.07812.10
5.3.70.0160.05212.10
5.3.60.0170.04512.08
5.3.50.0420.08312.03
5.3.40.0190.04412.03
5.3.30.0180.04512.00
5.3.20.0130.04711.77
5.3.10.0190.04011.73
5.3.00.0170.04011.71
5.2.170.0160.0319.22
5.2.160.0140.0369.21
5.2.150.0110.0379.21
5.2.140.0140.0379.21
5.2.130.0130.0369.18
5.2.120.0160.0319.18
5.2.110.0190.0349.19
5.2.100.0150.0339.19
5.2.90.0110.0359.18
5.2.80.0100.0399.18
5.2.70.0350.0749.18
5.2.60.0120.0369.13
5.2.50.0130.0349.09
5.2.40.0150.0349.08
5.2.30.0130.0359.05
5.2.20.0120.0359.05
5.2.10.0190.0308.96
5.2.00.0090.0388.80
5.1.60.0110.0298.09
5.1.50.0100.0308.08
5.1.40.0150.0248.07
5.1.30.0090.0338.42
5.1.20.0120.0308.45
5.1.10.0120.0298.16
5.1.00.0140.0298.16
5.0.50.0100.0256.64
5.0.40.0080.0246.51
5.0.30.0100.0356.32
5.0.20.0110.0226.29
5.0.10.0110.0246.27
5.0.00.0100.0366.26
4.4.90.0070.0194.78
4.4.80.0070.0184.75
4.4.70.0070.0184.76
4.4.60.0050.0224.76
4.4.50.0070.0184.77
4.4.40.0090.0294.71
4.4.30.0120.0134.76
4.4.20.0070.0184.84
4.4.10.0080.0174.85
4.4.00.0100.0264.75
4.3.110.0140.0714.66
4.3.100.0050.0194.66
4.3.90.0050.0194.63
4.3.80.0110.0244.59
4.3.70.0080.0174.63
4.3.60.0080.0154.63
4.3.50.0100.0144.63
4.3.40.0100.0234.54
4.3.30.0040.0203.30
4.3.20.0030.0203.29
4.3.10.0030.0203.24
4.3.00.0070.0237.52

preferences:
44.91 ms | 400 KiB | 5 Q