3v4l.org

run code in 300+ PHP versions simultaneously
<?php class X { function __get() { return array('foo' => NULL); } } $x = new X; echo key($x->foo);
Output for 5.3.0 - 5.3.28, 5.4.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.

preferences:
183.67 ms | 1395 KiB | 65 Q