3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class T { public function __get($name) { return 4; } public function __set($name) {} } $t = new T(); $p = T->h = 5; var_dump($p);
Output for 5.3.0 - 5.4.13
Fatal error: Method T::__set() must take exactly 2 arguments in /in/fkA1X on line 11
Process exited with code 255.