3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array("D"=>"dog","a"=>"cat","A"=>"moose","d"=>"mouse"); ksort($arr, 'SORT_FLAG_CASE'); var_dump($arr);

preferences:
61.53 ms | 402 KiB | 5 Q