3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sortAry[] = '1.php'; $sortAry[] = '12.php'; $newLogs[] = "aa 1.php"; $newLogs[] = "bb 1.php"; array_multisort($sortAry, $newLogs); var_dump($sortAry, $newLogs);
based on fuEKI
Output for 7.2.0 - 7.2.32, 7.3.0 - 7.3.20, 7.4.0 - 7.4.8, 8.0.0alpha1 - alpha3
array(2) { [0]=> string(5) "1.php" [1]=> string(6) "12.php" } array(2) { [0]=> string(8) "aa 1.php" [1]=> string(8) "bb 1.php" }