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);

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
array(4) { ["A"]=> string(5) "moose" ["D"]=> string(3) "dog" ["a"]=> string(3) "cat" ["d"]=> string(5) "mouse" }
Output for Array change keys
array(4) { ["A"]=> string(5) "moose" ["D"]=> string(3) "dog" ["a"]=> string(3) "cat" ["d"]=> string(5) "mouse" }
Output for Lexical anon
array(4) { ["A"]=> string(5) "moose" ["D"]=> string(3) "dog" ["a"]=> string(3) "cat" ["d"]=> string(5) "mouse" }

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page