3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class X { function __get() { return array('foo' => NULL); } } $x = new X; echo key($x->foo);
Output for 5.3.0 - 5.4.28
Fatal error: Method X::__get() must take exactly 1 argument in /in/CrK7F on line 4
Process exited with code 255.