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($name) { echo "Hello" . $name; } } $bar = new bar; $bar->greet('jan'); $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.0170.00318.55
8.3.50.0110.00722.00
8.3.40.0140.00318.48
8.3.30.0140.00019.22
8.3.20.0040.00420.22
8.3.10.0070.00023.52
8.3.00.0080.00020.90
8.2.180.0090.00616.38
8.2.170.0150.00422.96
8.2.160.0100.00620.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0080.00019.48
8.2.110.0060.00322.20
8.2.100.0120.00017.91
8.2.90.0000.00919.08
8.2.80.0030.00617.97
8.2.70.0060.00317.38
8.2.60.0000.00817.91
8.2.50.0050.00318.07
8.2.40.0030.00518.16
8.2.30.0050.00318.30
8.2.20.0040.00417.68
8.2.10.0040.00418.12
8.2.00.0000.00817.59
8.1.280.0100.00725.92
8.1.270.0000.01523.97
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0090.00023.91
8.1.230.0110.00019.01
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.48
8.1.190.0080.00017.13
8.1.180.0050.00318.10
8.1.170.0030.00518.38
8.1.160.0070.00021.89
8.1.150.0040.00418.49
8.1.140.0000.00817.43
8.1.130.0070.00017.80
8.1.120.0000.00817.41
8.1.110.0000.00717.43
8.1.100.0000.00717.46
8.1.90.0040.00417.32
8.1.80.0000.00817.37
8.1.70.0040.00417.38
8.1.60.0040.00417.55
8.1.50.0040.00417.43
8.1.40.0040.00417.54
8.1.30.0040.00417.59
8.1.20.0030.00617.56
8.1.10.0050.00217.55
8.1.00.0040.00417.38
8.0.300.0000.00718.77
8.0.290.0040.00416.63
8.0.280.0070.00018.35
8.0.270.0030.00317.30
8.0.260.0030.00317.30
8.0.250.0030.00316.98
8.0.240.0040.00416.98
8.0.230.0070.00016.93
8.0.220.0030.00316.95
8.0.210.0040.00416.94
8.0.200.0070.00017.00
8.0.190.0040.00416.93
8.0.180.0000.00716.83
8.0.170.0000.00816.82
8.0.160.0000.00716.77
8.0.150.0000.00716.80
8.0.140.0070.00016.80
8.0.130.0030.00313.34
8.0.120.0000.00716.89
8.0.110.0080.00016.95
8.0.100.0070.00017.02
8.0.90.0070.00016.64
8.0.80.0040.01116.84
8.0.70.0070.00016.62
8.0.60.0030.00316.70
8.0.50.0070.00016.84
8.0.30.0110.01017.14
8.0.20.0080.01117.40
8.0.10.0040.00416.83
8.0.00.0090.00916.73
7.4.330.0050.00015.00
7.4.320.0060.00016.55
7.4.300.0000.00716.51
7.4.290.0070.00016.61
7.4.280.0030.00616.58
7.4.270.0030.00316.51
7.4.260.0030.00316.41
7.4.250.0000.00716.47
7.4.240.0000.00716.55
7.4.230.0000.00716.52
7.4.220.0090.00916.63
7.4.210.0100.01016.51
7.4.200.0000.00716.68
7.4.160.0100.01316.50
7.4.150.0030.01317.40
7.4.140.0140.00917.86
7.4.130.0100.00716.60
7.4.120.0100.00716.59
7.4.110.0130.01316.43
7.4.100.0150.00616.60
7.4.90.0130.00316.52
7.4.80.0100.01319.39
7.4.70.0130.01016.54
7.4.60.0030.01916.36
7.4.50.0030.00316.52
7.4.40.0060.01016.42
7.4.30.0150.00316.44
7.4.00.0090.00814.95
7.3.330.0030.00513.10
7.3.320.0030.00313.25
7.3.310.0000.00716.13
7.3.300.0040.00416.16
7.3.290.0070.00716.25
7.3.280.0060.01016.18
7.3.270.0180.00017.40
7.3.260.0100.01316.50
7.3.250.0090.00816.34
7.3.240.0160.00716.52
7.3.230.0070.01016.54
7.3.210.0080.00816.49
7.3.200.0090.00919.39
7.3.190.0130.00316.50
7.3.180.0090.00616.55
7.3.170.0070.01016.27
7.3.160.0100.00616.28
7.3.120.0070.00914.84
7.3.110.0090.00514.66
7.3.100.0150.00014.63
7.3.90.0050.00514.83
7.3.80.0100.00314.70
7.3.70.0000.01414.72
7.3.60.0030.00914.81
7.3.50.0070.01014.82
7.3.40.0100.00314.66
7.3.30.0100.00314.32
7.3.20.0000.01216.46
7.3.10.0000.01516.67
7.3.00.0090.00316.36
7.2.330.0100.01016.38
7.2.320.0070.01016.38
7.2.310.0080.00816.64
7.2.300.0100.00616.79
7.2.290.0110.00716.48
7.2.250.0090.00914.95
7.2.240.0030.01315.28
7.2.230.0070.01015.22
7.2.220.0050.00414.83
7.2.210.0060.00615.08
7.2.200.0080.00414.92
7.2.190.0100.00714.90
7.2.180.0030.00915.26
7.2.170.0040.00814.95
7.2.80.0070.00716.52
7.2.00.0060.00619.30
7.1.330.0070.00715.71
7.1.320.0030.00715.61
7.1.310.0070.00715.46
7.1.300.0070.00715.32
7.1.290.0000.01015.56
7.1.280.0040.00815.39
7.1.270.0090.00615.35
7.1.260.0000.01415.50
7.1.200.0100.00015.39
7.1.100.0100.00318.21
7.1.70.0000.01117.17
7.1.60.0090.01519.70
7.1.50.0030.02216.94
7.1.00.0070.09322.36
7.0.200.0000.00916.61
7.0.140.0070.06722.21
7.0.60.0030.06719.94
7.0.50.0070.03717.97
7.0.40.0130.08020.05
7.0.30.0500.03720.42
7.0.20.0170.04020.12
7.0.10.0230.05020.15
7.0.00.0030.09020.16
5.6.280.0070.09020.93
5.6.210.0030.05020.68
5.6.200.0100.06718.14
5.6.190.0070.08020.63
5.6.180.0330.05020.38
5.6.170.0270.04020.54
5.6.160.0030.04020.41
5.6.150.0030.05318.27
5.6.140.0130.06318.14
5.6.130.0030.08318.14
5.6.120.0100.07721.00
5.6.110.0100.04021.08
5.6.100.0030.08721.00
5.6.90.0070.07020.95
5.6.80.0170.06720.40
5.6.70.0300.06720.51
5.5.350.0130.05720.41
5.5.340.0070.08018.09
5.5.330.0030.04020.13
5.5.320.0200.03320.30
5.5.310.0230.08020.27
5.5.300.0030.08017.92
5.5.290.0070.07718.01
5.5.280.0130.06720.89
5.5.270.0130.08320.87
5.5.260.0070.06020.69
5.5.250.0000.07720.61
5.5.240.0170.03720.04
5.4.450.0130.05319.47
5.4.440.0430.06319.30
5.4.430.0030.06319.48
5.4.420.0730.00019.53
5.4.410.0100.05319.04
5.4.400.0200.07718.85
5.4.390.0300.07018.84
5.4.380.0330.05318.57
5.4.370.0100.04718.72
5.4.360.0130.03718.53
5.4.350.0060.03712.03
5.4.340.0080.04412.02
5.4.320.0060.03612.51
5.4.310.0100.04312.50
5.4.300.0050.05412.50
5.4.290.0060.05212.50
5.4.280.0090.04912.39
5.4.270.0130.05212.39
5.4.260.0100.04412.40
5.4.250.0080.04112.40
5.4.240.0100.04112.39
5.4.230.0070.04812.39
5.4.220.0110.03812.39
5.4.210.0140.04312.39
5.4.200.0140.04012.39
5.4.190.0060.04812.39
5.4.180.0080.04312.38
5.4.170.0090.04712.40
5.4.160.0050.04212.40
5.4.150.0060.04612.39
5.4.140.0090.04912.07
5.4.130.0110.04712.06
5.4.120.0120.04412.02
5.4.110.0050.04512.01
5.4.100.0050.04512.01
5.4.90.0070.04112.02
5.4.80.0060.04212.02
5.4.70.0080.04312.01
5.4.60.0090.04012.01
5.4.50.0060.04412.01
5.4.40.0040.04312.00
5.4.30.0070.03812.00
5.4.20.0100.04112.00
5.4.10.0090.03812.00
5.4.00.0060.04011.49
5.3.290.0050.04512.80
5.3.280.0110.04012.71
5.3.270.0080.04912.72
5.3.260.0100.04912.72
5.3.250.0070.04912.72
5.3.240.0110.04812.72
5.3.230.0100.04112.71
5.3.220.0100.04012.68
5.3.210.0100.04512.68
5.3.200.0080.04912.68
5.3.190.0120.03912.68
5.3.180.0100.04812.68
5.3.170.0110.04912.66
5.3.160.0090.05112.68
5.3.150.0090.05312.68
5.3.140.0080.05112.66
5.3.130.0100.05112.66
5.3.120.0090.05212.66
5.3.110.0060.04412.66
5.3.100.0120.04512.12
5.3.90.0120.05112.10
5.3.80.0110.03412.10
5.3.70.0090.04212.10
5.3.60.0070.03912.08
5.3.50.0120.04712.04
5.3.40.0090.04612.03
5.3.30.0080.05111.98
5.3.20.0120.03911.77
5.3.10.0050.04311.73
5.3.00.0070.04011.72
5.2.170.0050.0339.23
5.2.160.0070.0339.23
5.2.150.0120.0319.23
5.2.140.0100.0289.22
5.2.130.0070.0369.19
5.2.120.0080.0379.19
5.2.110.0130.0309.19
5.2.100.0070.0389.18
5.2.90.0030.0449.18
5.2.80.0080.0409.18
5.2.70.0070.0409.18
5.2.60.0090.0389.13
5.2.50.0130.0349.10
5.2.40.0090.0309.07
5.2.30.0050.0359.05
5.2.20.0110.0279.04
5.2.10.0080.0288.94
5.2.00.0040.0318.81
5.1.60.0050.0248.09
5.1.50.0050.0258.09
5.1.40.0100.0238.07
5.1.30.0060.0298.42
5.1.20.0050.0268.45
5.1.10.0050.0268.16
5.1.00.0060.0288.17
5.0.50.0050.0246.65
5.0.40.0090.0166.50
5.0.30.0060.0326.32
5.0.20.0020.0236.28
5.0.10.0030.0226.26
5.0.00.0050.0346.25
4.4.90.0040.0174.77
4.4.80.0050.0154.75
4.4.70.0050.0194.75
4.4.60.0020.0204.75
4.4.50.0030.0194.77
4.4.40.0040.0264.71
4.4.30.0030.0164.76
4.4.20.0030.0184.84
4.4.10.0010.0184.85
4.4.00.0040.0284.76
4.3.110.0020.0214.67
4.3.100.0030.0214.66
4.3.90.0050.0204.64
4.3.80.0030.0334.58
4.3.70.0030.0204.63
4.3.60.0050.0194.63
4.3.50.0030.0164.63
4.3.40.0030.0264.53
4.3.30.0000.0183.30
4.3.20.0010.0183.28
4.3.10.0010.0173.24
4.3.00.0070.0276.98

preferences:
58.53 ms | 401 KiB | 5 Q