3v4l.org

run code in 200+ php & hhvm versions
<?php class Bar{ function __isset($a){ return isset($this->{$a}); // I shouldn't be forced to implement this, // since it looks exactly like the default isset() handler } function __get($a){ throw new Error("no prop error\n"); } } $bar = new Bar; var_dump(isset($bar->foo) ? $bar->foo : "qux"); // also works without errors
based on dfi56
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.2.6
string(3) "qux"