3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class X { function &__get($name) { $tmp = array('foo' => NULL); return &$tmp; } } $x = new X; echo key($x->foo);
Output for 5.3.0 - 5.4.28
Parse error: syntax error, unexpected '&' in /in/1RLvp on line 4
Process exited with code 255.