3v4l.org

run code in 200+ php & hhvm versions
<?php class Foo{ public function __unset($name) { trigger_error($name, E_USER_WARNING); } } $f = new Foo(); $f->__unset("direct"); @$f->__unset("direct suppressed"); unset($f->{"unset"}); //@unset($f->{"unset suppressed 1"}); - not allowed //unset(@$f->{"unset suppressed 2"}); - not allowed
Output for 5.5.0 - 7.2.6
Warning: direct in /in/idvWY on line 5 Warning: unset in /in/idvWY on line 5