3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $v = array(); $d = new stdClass(); var_dump(isset($v[$d])); unset($v[$d]);
Output for 5.1.0 - 7.1.0
Warning: Illegal offset type in isset or empty in /in/qQ8n7 on line 6 bool(false) Warning: Illegal offset type in unset in /in/qQ8n7 on line 7
Output for 5.0.0 - 5.0.5
Warning: Illegal offset type in unset in /in/qQ8n7 on line 6 bool(false) Warning: Illegal offset type in unset in /in/qQ8n7 on line 7
Output for 4.3.0 - 4.4.9
Warning: Illegal offset type in /in/qQ8n7 on line 6 bool(false) Warning: Illegal offset type in unset in /in/qQ8n7 on line 7