3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( '13-2014' => 'a', '14-2014' => 'a', '06-2014' => 'a', ); ksort($array, SORT_STRING); print_r($array);
Output for 4.3.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [06-2014] => a [13-2014] => a [14-2014] => a )