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); print_r($tmp);
based on ROFR6
Output for hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [ca] => 1 [ce] => 1 [pe] => 1 [cb] => 2 [pa] => 2 )
Output for 4.3.0 - 5.6.28
Array ( [pe] => 1 [ca] => 1 [ce] => 1 [cb] => 2 [pa] => 2 )