run code in 300+ PHP versions simultaneously
<?php $sortAry[] = '31.php'; $sortAry[] = '12.php'; $newLogs[] = "aa 1.php"; $newLogs[] = "bb 1.php"; array_multisort($sortAry, $newLogs); var_dump($sortAry, $newLogs);
based on Z4RTM

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for branch master
array(2) { [0]=> string(6) "12.php" [1]=> string(6) "31.php" } array(2) { [0]=> string(8) "bb 1.php" [1]=> string(8) "aa 1.php" }

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page