3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(1 => 2, 6=>7, 3=>4); arsort($a); var_dump(each($a));
based on JQ1Gc
Output for 4.3.0 - 7.1.0
array(4) { [1]=> int(7) ["value"]=> int(7) [0]=> int(6) ["key"]=> int(6) }