3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arrasy=array('1'=>'mela','2'=>'pera','3'=>'banana'); while ($fruit_name = current($arrasy)) { echo key($arrasy).'<br />'; next($arrasy); }
Output for 4.3.0 - 7.2.0
1<br />2<br />3<br />