3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( '0' => 'z1', '1' => 'Z10', '2' => 'z12', '3' => 'Z2', '4' => 'z3', ); asort($a, SORT_STRING|SORT_FLAG_CASE|SORT_NATURAL); var_dump($a);
based on 536s9
Output for 5.5.0 - 7.3.0rc4
array(5) { [0]=> string(2) "z1" [3]=> string(2) "Z2" [4]=> string(2) "z3" [1]=> string(3) "Z10" [2]=> string(3) "z12" }