3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['10:38' => 'Dale', '8:06' => 'Catalin', '09:30' => 'Sam']; # Sort by arraival ksort($array, SORT_NATURAL); var_dump( $array);

preferences:
63.69 ms | 405 KiB | 5 Q