3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?phpfunction &f() {    $x = "foo";    var_dump($x);    print "$x\n";    return($a);}for ($i = 0; $i < 3; $i++) {    $h = &f();}?>
based on d7Qsg
Output for 5.4.0 - 5.4.31
Parse error: syntax error, unexpected ' ' (T_STRING) in /in/QBe0h on line 1
Process exited with code 255.