3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ "2" => "abc", "3" => "aBc", "65" => "Abc", "ab" => "abc12", "lkT" => 2, 45 => "test", "This" => "is this", false => "abc012", " " => 22.22, ]; print_r($array); uasort($array, function ($x, $y){ return $x >= $y; }); print_r($array);

preferences:
55.6 ms | 402 KiB | 5 Q