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; }; $bar = & $reader($this, 'bar'); var_dump($bar); } } new Qwe()->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)
5.4.170.0180.07012.40
5.4.160.0160.04312.39
5.4.150.0130.04712.39
5.4.140.0190.04312.08
5.4.130.0170.04112.06
5.4.120.0130.04412.02
5.4.110.0150.04212.02
5.4.100.0120.04712.03
5.4.90.0170.04212.03
5.4.80.0200.04112.02
5.4.70.0110.04812.02
5.4.60.0170.04012.02
5.4.50.0170.04012.01
5.4.40.0220.03512.00
5.4.30.0200.06812.00
5.4.20.0160.04311.99
5.4.10.0160.04112.00
5.4.00.0340.08211.49
5.3.270.0160.04612.72
5.3.260.0200.04112.72
5.3.250.0080.05212.72
5.3.240.0160.04412.72
5.3.230.0150.04712.71
5.3.220.0180.04212.68
5.3.210.0110.04912.68
5.3.200.0200.04412.68
5.3.190.0170.04412.68
5.3.180.0120.04912.67
5.3.170.0170.04312.67
5.3.160.0160.04412.67
5.3.150.0170.04412.68
5.3.140.0200.04112.66
5.3.130.0180.04312.66
5.3.120.0230.06812.66
5.3.110.0170.04512.66
5.3.100.0180.04312.13
5.3.90.0190.03912.11
5.3.80.0140.04512.10
5.3.70.0170.04712.09
5.3.60.0190.04112.08
5.3.50.0150.04412.03
5.3.40.0120.04712.03
5.3.30.0090.04812.00
5.3.20.0150.04311.78
5.3.10.0160.04011.74
5.3.00.0210.03511.72

preferences:
138.7 ms | 1394 KiB | 7 Q