3v4l.org

run code in 200+ 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 7.2.0
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /in/SE02v on line 3 0get0get1pst2co3rec1pst0get1pst2co3rec2co0get1pst2co3rec3rec0get1pst2co3rec
Output for 7.0.0 - 7.1.10
0get0get1pst2co3rec1pst0get1pst2co3rec2co0get1pst2co3rec3rec0get1pst2co3rec
Output for 4.3.0 - 5.6.28
0get0get1pst2co3rec