3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $process = array('get', 'pst', 'co', 'rec'); while (list($key, $val) = each($process)) { echo $key; echo $val; foreach ($val as $k => $v) { unset($process[$key][$k]); if (is_array($v)) { $process[$key][stripslashes($k)] = $v; $process[] = &$process[$key][stripslashes($k)]; } else { $process[$key][stripslashes($k)] = stripslashes($v); echo $process[$key][stripslashes($k)] ; echo $v; } } } unset($process); ?>
Output for 4.3.0 - 4.3.10, 4.4.0 - 7.1.0
0get Warning: Invalid argument supplied for foreach() in /in/4Mvpo on line 6 1pst Warning: Invalid argument supplied for foreach() in /in/4Mvpo on line 6 2co Warning: Invalid argument supplied for foreach() in /in/4Mvpo on line 6 3rec Warning: Invalid argument supplied for foreach() in /in/4Mvpo on line 6
Output for 4.3.11
0get1pst2co3rec