3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { public $value = 3; function &getValue() { return &$this->value; } function test() { $params = array(); $params[] = &$this->getValue(); $params[] = $this->getValue(); return $params; } } $foo = new Foo(); var_dump($foo->test());
Output for 5.3.0 - 5.4.25
Parse error: syntax error, unexpected '&' in /in/nosG9 on line 9
Process exited with code 255.