3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ['abc' => 1, 'def' => 1, 'ghi' => 2]; arsort($a); var_dump($a);
based on 3iraW
Output for 7.0.0 - 7.3.0alpha1
array(3) { ["ghi"]=> int(2) ["abc"]=> int(1) ["def"]=> int(1) }
Output for 5.6.0 - 5.6.25
array(3) { ["ghi"]=> int(2) ["def"]=> int(1) ["abc"]=> int(1) }