3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { private $bar = 'baz'; } $reader = function & ($object, $property) { $value = & Closure::bind(function & () use ($property) { return & $this->$property; }, $object, $object); return $value; }; $foo = new Foo(); $bar = & $reader($foo, 'bar'); $bar = 'tab'; var_dump($foo);
Output for 5.3.0 - 5.4.17
Parse error: syntax error, unexpected '&' in /in/E76EX on line 10
Process exited with code 255.