3v4l.org

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