3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $frutta = array("d"=>"limone", "a"=>"arancia", "b"=>"banana", "c"=>"mela"); asort($frutta); reset($frutta); while (list($chiave, $valore) = each($frutta)) { echo "$chiave = $valore\n"; } ?>
Output for 7.2.0 - 7.2.6
Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /in/nOP9B on line 5 a = arancia b = banana d = limone c = mela
Output for 4.3.0 - 7.1.20
a = arancia b = banana d = limone c = mela