3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bar = 'baz'; } $reader = function & ($object, $property) { $value = & Closure::bind(function & () use ($property) { return $this->$property; }, $object, $object)->__invoke(); return $value; }; $foo = new Foo(); $bar = & $reader($foo, 'bar'); // $bar = 'tab'; var_dump($bar); var_dump($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.0070.00716.75
8.3.50.0170.00317.82
8.3.40.0090.00618.69
8.3.30.0040.01118.70
8.3.20.0030.00620.16
8.3.10.0040.00423.69
8.3.00.0040.01422.39
8.2.180.0140.00718.26
8.2.170.0150.00022.96
8.2.160.0070.00722.30
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00522.15
8.2.120.0080.00026.35
8.2.110.0090.00019.26
8.2.100.0030.00917.91
8.2.90.0040.00419.27
8.2.80.0030.00617.97
8.2.70.0030.00517.34
8.2.60.0030.00518.03
8.2.50.0050.00318.10
8.2.40.0030.00820.47
8.2.30.0050.00219.23
8.2.20.0070.00017.53
8.2.10.0000.00717.94
8.2.00.0070.00017.68
8.1.280.0100.00725.92
8.1.270.0040.00423.92
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0040.00822.66
8.1.230.0080.00317.42
8.1.220.0040.00417.74
8.1.210.0090.00018.77
8.1.200.0030.00617.35
8.1.190.0050.00317.52
8.1.180.0050.00318.10
8.1.170.0000.00818.54
8.1.160.0000.00722.13
8.1.150.0000.00718.89
8.1.140.0040.00419.62
8.1.130.0030.00317.71
8.1.120.0000.00717.46
8.1.110.0000.00717.41
8.1.100.0070.00017.45
8.1.90.0060.00317.43
8.1.80.0040.00417.51
8.1.70.0030.00617.36
8.1.60.0000.00817.47
8.1.50.0060.00317.39
8.1.40.0030.00617.44
8.1.30.0040.00417.55
8.1.20.0070.00017.55
8.1.10.0080.00017.62
8.1.00.0000.00717.47
8.0.300.0080.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00818.37
8.0.270.0000.00817.24
8.0.260.0030.00317.47
8.0.250.0000.00716.86
8.0.240.0000.00616.86
8.0.230.0080.00016.97
8.0.220.0030.00416.82
8.0.210.0020.00516.91
8.0.200.0000.00617.00
8.0.190.0060.00316.95
8.0.180.0000.00716.98
8.0.170.0000.00916.89
8.0.160.0070.00016.93
8.0.150.0000.00716.91
8.0.140.0000.00816.91
8.0.130.0030.00313.37
8.0.120.0040.00416.86
8.0.110.0070.00016.89
8.0.100.0070.00016.73
8.0.90.0040.00416.79
8.0.80.0030.01316.91
8.0.70.0000.00716.89
8.0.60.0070.00016.83
8.0.50.0070.00016.93
8.0.30.0120.00716.92
8.0.20.0090.01117.40
8.0.10.0040.00417.01
8.0.00.0070.01016.71
7.4.330.0000.00516.66
7.4.320.0000.00716.53
7.4.300.0030.00316.50
7.4.290.0040.00416.38
7.4.280.0040.00416.54
7.4.270.0000.00716.45
7.4.260.0080.00016.51
7.4.250.0000.00716.63
7.4.240.0000.00816.43
7.4.230.0000.00716.55
7.4.220.0160.00816.58
7.4.210.0040.01816.48
7.4.200.0070.00016.52
7.4.160.0080.00816.44
7.4.150.0060.01217.40
7.4.140.0110.00817.86
7.4.130.0100.00716.53
7.4.120.0150.00316.49
7.4.110.0040.01616.55
7.4.100.0030.01416.44
7.4.90.0180.00616.44
7.4.80.0110.00619.39
7.4.70.0140.00316.55
7.4.60.0170.00016.41
7.4.50.0000.01416.43
7.4.40.0080.00816.58
7.4.30.0030.01416.38
7.4.00.0040.01114.80
7.3.330.0000.00513.23
7.3.320.0000.00513.37
7.3.310.0000.00716.28
7.3.300.0060.00016.23
7.3.290.0070.01016.36
7.3.280.0090.01016.36
7.3.270.0100.00717.40
7.3.260.0060.01216.38
7.3.250.0110.00916.52
7.3.240.0100.00816.46
7.3.230.0060.00916.66
7.3.210.0100.00716.32
7.3.200.0090.00916.53
7.3.190.0110.00716.61
7.3.180.0110.01116.43
7.3.170.0090.00916.60
7.3.160.0050.01716.44
7.3.10.0030.00716.62
7.3.00.0070.00316.88
7.2.330.0080.01216.31
7.2.320.0140.00416.44
7.2.310.0030.01616.53
7.2.300.0110.00716.67
7.2.290.0080.00816.65
7.2.130.0030.01016.82
7.2.120.0100.00016.86
7.2.110.0080.00416.70
7.2.100.0030.00716.62
7.2.90.0000.01517.09
7.2.80.0090.00317.06
7.2.70.0000.01217.04
7.2.60.0080.00216.83
7.2.50.0040.00716.97
7.2.40.0000.00916.96
7.2.30.0030.00716.71
7.2.20.0030.00716.91
7.2.10.0040.00416.84
7.2.00.0050.00618.13
7.1.250.0040.01115.72
7.1.200.0040.00815.91
7.1.100.0040.00418.03
7.1.70.0030.00717.03
7.1.60.0000.01317.22
7.1.00.0100.06722.54
7.0.200.0170.01014.85
7.0.111.4430.06019.91
7.0.100.0100.05719.88
7.0.90.0100.06319.91
7.0.80.0200.08020.08
7.0.70.0170.06319.93
7.0.60.0070.06319.92
7.0.50.0170.05320.43
7.0.41.5170.05720.40
7.0.30.0300.09020.42
7.0.20.0430.07320.35
7.0.10.0500.05320.37
7.0.00.0270.07320.23
5.6.250.0130.05320.66
5.6.240.0100.06320.72
5.6.230.0100.06320.71
5.6.220.0270.04320.54
5.6.210.0100.06320.64
5.6.200.0170.05721.06
5.6.190.0130.06021.16
5.6.180.0170.08021.20
5.6.170.0070.07720.96
5.6.160.0130.06020.95
5.6.150.0100.06320.96
5.6.140.0130.06021.15
5.6.130.0200.07021.15
5.6.120.0100.06721.05
5.6.110.0270.06721.22
5.6.100.0230.07321.17
5.6.90.0000.09721.08
5.6.80.0170.07320.66
5.6.70.0130.07720.50
5.6.60.0130.07720.49
5.6.50.0200.07320.45
5.6.40.0130.08020.43
5.6.30.0170.05020.31
5.6.20.0170.06720.44
5.6.10.0170.06720.32
5.6.00.0100.07320.47

preferences:
59.55 ms | 400 KiB | 5 Q