3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Hoge { function test1() { func1($this); var_dump($this); } function test2() { func2($this); var_dump($this); } } function func1($var) { unset($var); } function func2(&$var) { unset(&$var); } $hoge = new Hoge; $hoge->test1(); var_dump($hoge); $hoge->test2(); var_dump($hoge);
Output for 5.3.0 - 5.4.19
Parse error: syntax error, unexpected '&' in /in/sQKVd on line 23
Process exited with code 255.