3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar = 'baz'; } class Qwe extends Foo { public function qwerty() { $reader = function & ($object, $property) { $value = & Closure::bind(function & () use ($property) { return $this->$property; }, $object, $object)->__invoke(); return $value; }; return $bar = & $reader($this, 'bar'); } } $q = new Qwe(); var_dump($q->qwerty());

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.01016.63
8.3.50.0100.01017.58
8.3.40.0030.01218.70
8.3.30.0140.00018.82
8.3.20.0080.00018.77
8.3.10.0040.00420.56
8.3.00.0070.00417.37
8.2.180.0100.01016.38
8.2.170.0100.00722.96
8.2.160.0030.01021.07
8.2.150.0080.00024.18
8.2.140.0130.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00019.95
8.2.110.0040.00421.14
8.2.100.0040.00817.72
8.2.90.0000.00819.52
8.2.80.0070.00019.28
8.2.70.0000.00917.63
8.2.60.0080.00017.68
8.2.50.0060.00418.07
8.2.40.0000.00818.24
8.2.30.0040.00418.13
8.2.20.0080.00017.66
8.2.10.0080.00017.64
8.2.00.0080.00017.73
8.1.280.0090.00625.92
8.1.270.0040.00424.66
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0070.00322.49
8.1.230.0120.00020.89
8.1.220.0000.00817.74
8.1.210.0100.00018.77
8.1.200.0030.00617.35
8.1.190.0000.00817.43
8.1.180.0050.00318.10
8.1.170.0000.00818.90
8.1.160.0080.00018.96
8.1.150.0050.00318.64
8.1.140.0040.00417.48
8.1.130.0000.00717.87
8.1.120.0000.00817.38
8.1.110.0000.00817.34
8.1.100.0040.00417.47
8.1.90.0070.00017.38
8.1.80.0050.00217.46
8.1.70.0030.00317.38
8.1.60.0030.00917.63
8.1.50.0000.00717.52
8.1.40.0040.00417.52
8.1.30.0030.00417.61
8.1.20.0030.00617.59
8.1.10.0040.00417.59
8.1.00.0080.00017.51
8.0.300.0030.00619.88
8.0.290.0040.00416.63
8.0.280.0050.00318.35
8.0.270.0000.00717.37
8.0.260.0030.00316.83
8.0.250.0040.00416.96
8.0.240.0000.00716.82
8.0.230.0020.00516.93
8.0.220.0070.00316.83
8.0.210.0030.00516.93
8.0.200.0040.00416.93
8.0.190.0030.00316.94
8.0.180.0000.00816.80
8.0.170.0060.00316.86
8.0.160.0070.00016.91
8.0.150.0000.00816.73
8.0.140.0000.00916.80
8.0.130.0030.00313.38
8.0.120.0050.00316.75
8.0.110.0070.00016.85
8.0.100.0040.00416.95
8.0.90.0040.00416.92
8.0.80.0120.00316.86
8.0.70.0080.00016.90
8.0.60.0040.00416.96
8.0.50.0000.00816.93
8.0.30.0100.01316.96
8.0.20.0120.00617.13
8.0.10.0000.00716.96
8.0.00.0080.01016.79
7.4.330.0000.00413.04
7.4.320.0000.00616.50
7.4.300.0030.00316.49
7.4.290.0070.00416.51
7.4.280.0040.00416.57
7.4.270.0030.00316.56
7.4.260.0030.00313.28
7.4.250.0050.00316.46
7.4.240.0030.00316.65
7.4.230.0030.00316.49
7.4.220.0100.01016.64
7.4.210.0060.01016.62
7.4.200.0040.00416.44
7.4.190.0040.00416.43
7.4.160.0130.00316.59
7.4.150.0070.01016.48
7.4.140.0150.00616.43
7.4.130.0110.00816.42
7.4.120.0080.00916.51
7.4.110.0090.00616.53
7.4.100.0110.00616.54
7.4.90.0140.00416.58
7.4.80.0090.01216.44
7.4.70.0070.01016.55
7.4.60.0090.01516.50
7.4.50.0040.00416.45
7.4.40.0030.01016.20
7.4.30.0090.00916.57
7.4.00.0030.01014.75
7.3.330.0030.00313.24
7.3.320.0000.00513.36
7.3.310.0040.00416.23
7.3.300.0000.00716.34
7.3.290.0070.00716.38
7.3.280.0060.00916.40
7.3.270.0000.01716.64
7.3.260.0050.01716.49
7.3.250.0100.00816.68
7.3.240.0080.01116.39
7.3.230.0110.00616.46
7.3.210.0120.00616.66
7.3.200.0000.01719.39
7.3.190.0070.01016.57
7.3.180.0080.00816.49
7.3.170.0090.00916.42
7.3.160.0060.00916.47
7.3.120.0130.00314.87
7.3.10.0040.00716.68
7.3.00.0110.00316.68
7.2.330.0170.00016.74
7.2.320.0040.01516.42
7.2.310.0130.01416.71
7.2.300.0150.01516.76
7.2.290.0110.01116.71
7.2.130.0060.00616.85
7.2.120.0030.00516.71
7.2.110.0000.01216.64
7.2.100.0040.01116.79
7.2.90.0030.00916.89
7.2.80.0060.00616.91
7.2.70.0040.00716.96
7.2.60.0070.00716.86
7.2.50.0090.00316.93
7.2.40.0070.00717.03
7.2.30.0040.00816.93
7.2.20.0070.01016.99
7.2.10.0040.01216.73
7.2.00.0120.01018.16
7.1.250.0070.00315.71
7.1.200.0040.00815.58
7.1.100.0000.00918.09
7.1.70.0000.01017.30
7.1.60.0070.01719.40
7.1.50.0060.01616.76
7.1.00.0030.07722.57
7.0.200.0030.00616.46
7.0.140.0030.07321.92
7.0.120.0030.07022.04
7.0.60.0030.07319.93
7.0.50.0170.05717.88
7.0.40.0070.08017.75
7.0.30.0000.06717.76
7.0.20.0070.07317.75
7.0.10.0070.07017.85
7.0.00.0100.07317.81
5.6.210.0100.08020.68
5.6.200.0130.07018.22
5.6.190.0130.07318.18
5.6.180.0030.06018.28
5.6.170.0030.07018.25
5.6.160.0070.08318.18
5.6.150.0070.07018.26
5.6.140.0030.08018.15
5.6.130.0100.04018.21
5.6.120.0070.04318.12
5.6.110.0070.07018.18
5.6.100.0130.05318.22
5.6.90.0000.07318.19
5.6.80.0070.05017.57
5.6.70.0000.05017.55
5.6.60.0070.07717.56
5.6.50.0030.08317.56
5.6.40.0100.03717.55
5.6.30.0070.04017.51
5.6.20.0170.06717.60
5.6.10.0030.06717.59
5.6.00.0070.07317.50
5.5.350.0270.03320.35
5.5.340.0070.08318.05
5.5.330.0130.07318.09
5.5.320.0100.07717.96
5.5.310.0030.04317.98
5.5.300.0030.05017.97
5.5.290.0100.06318.04
5.5.280.0130.07717.98
5.5.270.0000.04717.95
5.5.260.0130.07317.95
5.5.250.0130.05717.80
5.5.240.0100.03317.43
5.5.230.0100.08017.40
5.5.220.0000.05717.34
5.5.210.0000.05017.44
5.5.200.0130.04017.45
5.5.190.0030.04017.30
5.5.180.0130.07017.44
5.5.160.0170.06017.39
5.5.150.0100.07317.42
5.5.140.0070.04717.30
5.5.130.0130.07317.39
5.5.120.0230.04317.43
5.5.110.0030.04017.36
5.5.100.0070.06017.30
5.5.90.0030.03717.22
5.5.80.0030.03717.21
5.5.70.0100.03017.23
5.5.60.0030.03317.18
5.5.50.0030.04017.20
5.5.40.0070.03317.21
5.5.30.0000.04017.25
5.5.20.0070.03317.19
5.5.10.0070.03317.25
5.5.00.0070.03317.22
5.4.450.0070.08019.44
5.4.440.0030.05719.38
5.4.430.0000.04719.35
5.4.420.0030.05719.64
5.4.410.0230.06319.25
5.4.400.0070.04319.27
5.4.390.0100.07318.89
5.4.380.0100.07319.27
5.4.370.0030.07319.13
5.4.360.0200.06319.02
5.4.350.0030.08318.91
5.4.340.0100.06019.11
5.4.320.0030.08019.10
5.4.310.0070.06719.02
5.4.300.0200.05019.04
5.4.290.0100.07719.26
5.4.280.0230.07019.07
5.4.270.0030.04319.13
5.4.260.0030.03719.13
5.4.250.0070.03319.00
5.4.240.0070.03319.09
5.4.230.0000.04019.12
5.4.220.0030.04318.95
5.4.210.0030.04319.27
5.4.200.0000.04019.04
5.4.190.0030.03719.03
5.4.180.0070.03318.90
5.4.170.0070.03719.01
5.4.160.0070.03319.25
5.4.150.0030.03719.11
5.4.140.0030.03316.37
5.4.130.0000.03716.34
5.4.120.0070.03016.42
5.4.110.0030.03316.53
5.4.100.0000.03716.37
5.4.90.0000.03716.35
5.4.80.0000.03716.41
5.4.70.0030.03316.45
5.4.60.0030.03316.27
5.4.50.0070.03016.21
5.4.40.0070.03016.44
5.4.30.0030.03316.42
5.4.20.0070.03016.41
5.4.10.0030.03716.27
5.4.00.0000.04015.88
5.3.290.0170.04314.67
5.3.280.0000.04014.65
5.3.270.0000.04014.66
5.3.260.0030.03714.60
5.3.250.0030.03314.60
5.3.240.0000.03714.65
5.3.230.0030.03714.66
5.3.220.0000.03714.62
5.3.210.0030.03714.61
5.3.200.0070.03314.59
5.3.190.0070.03314.79
5.3.180.0070.03314.54
5.3.170.0030.03314.54
5.3.160.0070.04714.65
5.3.150.0030.03714.56
5.3.140.0000.03714.62
5.3.130.0030.03714.55
5.3.120.0000.04014.60
5.3.110.0030.03714.62
5.3.100.0000.03714.09
5.3.90.0070.07714.03
5.3.80.0030.05014.09
5.3.70.0030.03714.24
5.3.60.0000.04314.10
5.3.50.0100.03714.04
5.3.40.0000.05013.99
5.3.30.0030.06313.91
5.3.20.0070.04713.70
5.3.10.0030.05713.55
5.3.00.0030.05713.54
5.2.170.0000.03311.20
5.2.160.0100.02011.14
5.2.150.0000.03011.18
5.2.140.0030.03311.11
5.2.130.0070.03311.10
5.2.120.0070.06011.17
5.2.110.0070.06011.17
5.2.100.0030.05311.12
5.2.90.0100.05310.94
5.2.80.0070.04711.09
5.2.70.0070.04011.13
5.2.60.0070.06011.04
5.2.50.0130.05311.13
5.2.40.0070.06011.20
5.2.30.0000.06011.06
5.2.20.0070.06311.06
5.2.10.0070.05710.85
5.2.00.0030.06310.82
5.1.60.0070.04310.04
5.1.50.0000.05710.07
5.1.40.0000.0609.96
5.1.30.0030.06010.23
5.1.20.0030.04010.20
5.1.10.0070.05010.28
5.1.00.0070.05310.14
5.0.50.0000.0378.59
5.0.40.0070.0378.43
5.0.30.0030.0478.21
5.0.20.0070.0338.16
5.0.10.0030.0478.15
5.0.00.0030.0538.21
4.4.90.0030.0337.83
4.4.80.0030.0377.83
4.4.70.0030.0377.83
4.4.60.0030.0377.83
4.4.50.0000.0337.83
4.4.40.0030.0507.83
4.4.30.0000.0377.83
4.4.20.0030.0277.83
4.4.10.0000.0377.83
4.4.00.0070.0437.83
4.3.110.0030.0237.83
4.3.100.0030.0337.83
4.3.90.0000.0377.83
4.3.80.0000.0577.83
4.3.70.0030.0277.83
4.3.60.0070.0237.83
4.3.50.0000.0277.83
4.3.40.0070.0237.83
4.3.30.0030.0277.83
4.3.20.0000.0237.83
4.3.10.0030.0237.83
4.3.00.0000.0377.83

preferences:
45.04 ms | 401 KiB | 5 Q