3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php unset($x[1][2][3]); var_dump($x); unset($x->a->b->c); var_dump($x);
Output for 7.2.0
Notice: Undefined variable: x in /in/PH3G3 on line 2 Notice: Undefined variable: x in /in/PH3G3 on line 3 NULL Notice: Undefined variable: x in /in/PH3G3 on line 4 Warning: Attempt to modify property 'a' of non-object in /in/PH3G3 on line 4 Notice: Undefined variable: x in /in/PH3G3 on line 5 NULL
Output for 5.3.0 - 7.1.10
Notice: Undefined variable: x in /in/PH3G3 on line 2 Notice: Undefined variable: x in /in/PH3G3 on line 3 NULL Notice: Undefined variable: x in /in/PH3G3 on line 4 Warning: Attempt to modify property of non-object in /in/PH3G3 on line 4 Notice: Undefined variable: x in /in/PH3G3 on line 5 NULL
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: x in /in/PH3G3 on line 2 Notice: Undefined variable: x in /in/PH3G3 on line 3 NULL Notice: Undefined variable: x in /in/PH3G3 on line 4 Notice: Undefined variable: x in /in/PH3G3 on line 5 NULL
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: x in /in/PH3G3 on line 2 Notice: Undefined variable: x in /in/PH3G3 on line 3 NULL Notice: Undefined variable: x in /in/PH3G3 on line 4 Notice: Undefined variable: x in /in/PH3G3 on line 5 NULL