3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $modules = array('module1', 'module2'); $mod = array_flip($modules); foreach($mod as $key => $val) { if (!isset($mod['module1'])) { echo 'continue'; continue; } echo 'doing'; unset($mod[$key]); } var_dump($mod);
Output for 4.3.0 - 7.1.0
doingcontinuearray(1) { ["module2"]=> int(1) }