3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { private $name; public function greet2() { $this->greet('jan'); echo $this->name; } private function greet($name) { $this->name = $name; } } class bar extends foo { public function greet() { echo "Hello"; } } $bar = new bar; $bar->greet(); $bar->greet2();

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.0040.01118.30
8.3.50.0100.00522.10
8.3.40.0140.00718.83
8.3.30.0100.00319.21
8.3.20.0050.00220.34
8.3.10.0040.00423.70
8.3.00.0000.00820.84
8.2.180.0210.00316.63
8.2.170.0070.00722.96
8.2.160.0100.00320.58
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0040.00419.36
8.2.110.0030.00619.38
8.2.100.0090.00317.91
8.2.90.0000.00819.13
8.2.80.0030.00617.97
8.2.70.0040.00417.75
8.2.60.0000.00817.80
8.2.50.0050.00318.07
8.2.40.0040.00419.95
8.2.30.0070.00018.14
8.2.20.0040.00417.57
8.2.10.0030.00517.91
8.2.00.0000.00717.50
8.1.280.0120.00925.92
8.1.270.0080.00023.98
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0040.00422.19
8.1.230.0080.00319.06
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0030.00617.36
8.1.190.0080.00017.10
8.1.180.0040.00418.10
8.1.170.0000.00818.47
8.1.160.0000.00721.96
8.1.150.0050.00218.57
8.1.140.0020.00517.44
8.1.130.0050.00319.61
8.1.120.0000.00717.32
8.1.110.0000.00817.27
8.1.100.0000.00717.44
8.1.90.0050.00317.30
8.1.80.0000.00717.29
8.1.70.0030.00317.39
8.1.60.0030.00617.59
8.1.50.0070.00017.55
8.1.40.0000.00717.42
8.1.30.0030.00617.55
8.1.20.0040.00417.55
8.1.10.0000.00817.61
8.1.00.0000.00817.48
8.0.300.0070.00018.77
8.0.290.0040.00416.58
8.0.280.0000.00718.45
8.0.270.0030.00317.29
8.0.260.0000.00617.27
8.0.250.0000.00816.96
8.0.240.0050.00317.01
8.0.230.0000.00816.80
8.0.220.0000.00816.83
8.0.210.0000.00716.77
8.0.200.0060.00016.89
8.0.190.0070.00016.82
8.0.180.0050.00216.89
8.0.170.0040.00416.77
8.0.160.0000.00716.86
8.0.150.0000.00716.79
8.0.140.0040.00416.85
8.0.130.0000.00613.27
8.0.120.0040.00416.67
8.0.110.0040.00416.83
8.0.100.0000.00716.85
8.0.90.0050.00216.84
8.0.80.0150.00016.90
8.0.70.0070.00016.89
8.0.60.0000.00716.81
8.0.50.0040.00416.82
8.0.30.0060.01216.94
8.0.20.0090.00917.40
8.0.10.0040.00416.84
8.0.00.0050.01216.82
7.4.330.0030.00315.00
7.4.320.0030.00316.45
7.4.300.0040.00416.52
7.4.290.0090.00016.41
7.4.280.0050.00216.50
7.4.270.0040.00416.51
7.4.260.0070.00016.51
7.4.250.0000.00716.58
7.4.240.0050.00216.47
7.4.230.0070.00016.61
7.4.220.0030.01416.56
7.4.210.0000.01416.64
7.4.200.0040.00416.63
7.4.160.0070.01016.41
7.4.150.0130.00517.40
7.4.140.0070.01217.86
7.4.130.0110.01016.31
7.4.120.0110.00816.47
7.4.110.0120.00616.38
7.4.100.0140.00716.43
7.4.90.0030.01316.54
7.4.80.0130.01019.39
7.4.70.0120.00916.59
7.4.60.0090.01016.41
7.4.50.0050.00016.30
7.4.40.0030.01316.38
7.4.30.0030.01416.39
7.4.00.0090.00615.05
7.3.330.0000.00713.16
7.3.320.0000.00613.23
7.3.310.0080.00016.10
7.3.300.0060.00016.09
7.3.290.0110.00316.15
7.3.280.0080.00916.20
7.3.270.0030.01317.40
7.3.260.0140.00416.21
7.3.250.0120.00616.36
7.3.240.0090.00916.48
7.3.230.0060.01216.39
7.3.210.0080.00816.32
7.3.200.0120.00319.39
7.3.190.0100.00716.55
7.3.180.0030.01216.48
7.3.170.0060.00916.40
7.3.160.0040.01216.45
7.3.120.0060.00914.90
7.2.330.0030.01416.53
7.2.320.0100.00616.62
7.2.310.0150.00016.77
7.2.300.0130.00316.55
7.2.290.0090.00616.79
7.2.60.0060.00317.11
7.2.00.0030.01219.34
7.1.200.0000.01215.82
7.1.100.0060.00618.00
7.1.70.0030.00616.89
7.1.60.0170.00719.70
7.1.50.0130.01016.52
7.1.00.0030.07722.36
7.0.200.0000.00716.75
7.0.140.0000.07022.00
7.0.60.0030.05020.04
7.0.50.0030.04017.85
7.0.40.0070.08720.02
7.0.30.0470.06020.24
7.0.20.0200.04720.25
7.0.10.0330.07020.33
7.0.00.0030.05720.05
5.6.280.0030.07320.90
5.6.210.0030.08720.60
5.6.200.0130.07318.19
5.6.190.0130.06320.47
5.6.180.0230.08720.31
5.6.170.0300.03720.47
5.6.160.0000.09020.47
5.6.150.0070.03718.25
5.6.140.0100.06718.14
5.6.130.0100.07718.18
5.6.120.0000.04721.02
5.6.110.0030.05721.12
5.6.100.0170.04720.89
5.6.90.0170.07320.97
5.6.80.0130.07320.36
5.6.70.0200.03720.39
5.5.350.0230.06720.54
5.5.340.0000.05017.99
5.5.330.0000.04720.26
5.5.320.0130.03720.26
5.5.310.0400.07020.34
5.5.300.0070.03718.07
5.5.290.0030.04717.95
5.5.280.0130.06720.77
5.5.270.0170.07320.88
5.5.260.0070.07020.68
5.5.250.0130.08720.70
5.5.240.0030.04020.36
5.4.450.0700.05319.71
5.4.440.0400.06019.38
5.4.430.0670.04719.57
5.4.420.0700.00019.46
5.4.410.0070.06718.95
5.4.400.0070.06718.73
5.4.390.0200.05318.70
5.4.380.0300.05718.77
5.4.370.0070.05318.70
5.4.360.0170.05018.70
5.4.350.0120.07912.02
5.4.340.0060.04012.02
5.4.320.0040.04012.51
5.4.310.0050.04112.51
5.4.300.0060.03712.51
5.4.290.0080.04412.51
5.4.280.0110.04712.40
5.4.270.0030.04412.40
5.4.260.0100.03512.40
5.4.250.0010.04312.40
5.4.240.0060.03612.40
5.4.230.0100.03412.39
5.4.220.0050.03712.40
5.4.210.0030.03812.39
5.4.200.0070.03712.39
5.4.190.0050.04312.39
5.4.180.0070.03712.39
5.4.170.0050.03812.40
5.4.160.0070.03512.39
5.4.150.0060.03612.39
5.4.140.0060.03712.07
5.4.130.0060.03612.06
5.4.120.0080.03312.02
5.4.110.0060.03512.02
5.4.100.0050.03612.02
5.4.90.0040.03912.02
5.4.80.0040.03812.02
5.4.70.0070.03512.01
5.4.60.0060.03412.02
5.4.50.0040.03712.02
5.4.40.0040.03712.01
5.4.30.0060.03412.00
5.4.20.0100.03312.00
5.4.10.0080.03312.00
5.4.00.0080.03411.49
5.3.290.0080.03612.80
5.3.280.0040.03912.71
5.3.270.0070.04112.72
5.3.260.0090.03612.72
5.3.250.0060.03612.71
5.3.240.0080.03612.72
5.3.230.0040.04012.70
5.3.220.0090.03412.68
5.3.210.0050.04112.68
5.3.200.0050.03912.68
5.3.190.0070.03712.68
5.3.180.0080.05012.68
5.3.170.0110.03912.67
5.3.160.0120.03512.68
5.3.150.0130.04512.67
5.3.140.0090.04912.66
5.3.130.0090.04112.66
5.3.120.0130.03712.66
5.3.110.0110.03612.66
5.3.100.0030.04112.12
5.3.90.0050.03812.11
5.3.80.0060.03812.10
5.3.70.0080.03712.09
5.3.60.0060.03812.08
5.3.50.0120.03312.04
5.3.40.0060.03812.03
5.3.30.0120.03111.98
5.3.20.0050.04411.77
5.3.10.0070.03811.73
5.3.00.0110.03611.72
5.2.170.0090.0339.22
5.2.160.0060.0309.23
5.2.150.0130.0319.23
5.2.140.0090.0409.22
5.2.130.0110.0369.19
5.2.120.0070.0319.18
5.2.110.0030.0359.20
5.2.100.0100.0269.18
5.2.90.0040.0329.18
5.2.80.0040.0329.18
5.2.70.0060.0309.18
5.2.60.0070.0309.13
5.2.50.0060.0319.10
5.2.40.0040.0299.08
5.2.30.0080.0279.05
5.2.20.0100.0249.04
5.2.10.0040.0348.95
5.2.00.0040.0318.81
5.1.60.0040.0248.10
5.1.50.0060.0258.09
5.1.40.0030.0278.07
5.1.30.0050.0268.42
5.1.20.0050.0268.44
5.1.10.0040.0258.17
5.1.00.0040.0258.17
5.0.50.0050.0296.64
5.0.40.0070.0256.50
5.0.30.0050.0316.32
5.0.20.0050.0186.28
5.0.10.0050.0186.26
5.0.00.0020.0366.25
4.4.90.0020.0214.78
4.4.80.0020.0164.75
4.4.70.0040.0144.76
4.4.60.0030.0174.75
4.4.50.0030.0154.77
4.4.40.0010.0264.71
4.4.30.0040.0154.76
4.4.20.0030.0194.84
4.4.10.0030.0164.85
4.4.00.0010.0274.76
4.3.110.0030.0164.67
4.3.100.0010.0174.66
4.3.90.0010.0174.63
4.3.80.0030.0244.59
4.3.70.0040.0144.63
4.3.60.0040.0134.63
4.3.50.0020.0164.63
4.3.40.0030.0244.54
4.3.30.0010.0183.30
4.3.20.0040.0143.28
4.3.10.0020.0163.24
4.3.00.0070.0176.98

preferences:
43.17 ms | 401 KiB | 5 Q