3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ "3" => "aBc", "ab" => "abc12", "lkT" => 2, "65" => "Abc", 45 => "test", "This" => "is this", "2" => "abc", false => "abc012", " " => 22.22, ]; $array2 = [ "5" => "abc", "2" => "bca", "1" => "?", "33" => "he11o", ]; print_r($array1); print_r($array2); array_multisort($array1, SORT_ASC, SORT_NUMERIC, $array2, SORT_DESC, SORT_NATURAL ); print_r($array1); print_r($array2);

preferences:
25.02 ms | 405 KiB | 5 Q