3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Mocky { public function __isset() { echo "Mocky::__isset()\n"; } public function __get() { echo "Mocky::__get()\n"; } } $array = []; var_dump(empty($array)); $array = new ArrayObject(); var_dump(empty($array)); $mocky = new Mocky(); var_dump(empty($mocky));
Output for 5.3.0 - 5.4.30
Fatal error: Method Mocky::__isset() must take exactly 1 argument in /in/iZSpE on line 6
Process exited with code 255.