3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //iterator $array = array('Obst' => 'Banane','Gemüse' => 'Tomate','Teigwaren' => 'Nudeln'); #$beginn = microtime(true); #end($array); for(current($array); key($array) !== Null; next($array)) { echo key($array). " -> "; echo current($array)."<br />"; } #$dauer = microtime(true) - $beginn; #echo "Verarbeitung des Skripts (iterator): $dauer Sek.<br />"; ?>
based on drYc0
Output for 4.3.0 - 7.1.0
Obst -> Banane<br />Gemüse -> Tomate<br />Teigwaren -> Nudeln<br />