3v4l.org

run code in 200+ php & hhvm versions
<?php $arr = array("D"=>"dog","a"=>"cat","A"=>"moose","d"=>"mouse"); ksort($arr, $sort_flags=SORT_FLAG_CASE); var_dump($arr);