3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php error_reporting( E_ALL ); $var = array(); unset( $var['foo']['bar'] ); $var = false; unset( $var['foo']['bar'] );
based on YNBIg
Output for 7.0.0 - 7.2.0
Output for 5.0.0 - 5.6.21
Warning: Cannot unset offset in a non-array variable in /in/E8agT on line 10
Output for 4.3.0 - 4.4.9
Notice: Undefined index: foo in /in/E8agT on line 6