3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $tmp = array('ca'=>1,'cb'=>2,'ce'=>1,'pa'=>2,'pe'=>1); // Standard asort asort($tmp); foreach ($tmp as $e) { echo $e."\n"; }
based on N01GM
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
1 1 1 2 2