3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php unset($x[1][2][3]); var_dump($x); unset($x->a->b->c); var_dump($x);
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.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 of non-object in /in/PH3G3 on line 4 Notice: Undefined variable: x in /in/PH3G3 on line 5 NULL
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: x in /in/PH3G3 on line 2 NULL Notice: Undefined variable: x in /in/PH3G3 on line 4 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