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 ($process as $k=> $v) { echo $k; echo $v; } } unset($process); ?>
Output for hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
0get0get1pst2co3rec1pst0get1pst2co3rec2co0get1pst2co3rec3rec0get1pst2co3rec
Output for 4.3.0 - 5.6.28
0get0get1pst2co3rec