3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $langs = array('en', 'de', 'pt'); $arr = array(); foreach($langs as $key => $lang){ $arr[$lang] = unset($arr[$lang][$key]); } print_r($arr);
Output for 5.4.0 - 5.4.30
Parse error: syntax error, unexpected 'unset' (T_UNSET) in /in/4J7aY on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_UNSET in /in/4J7aY on line 5
Process exited with code 255.