3v4l.org

run code in 300+ PHP versions simultaneously
<?php $files = array('/path/to/file3.exe', '/path/to/file4.exe', '/path/2/file2.exe', '/path/2/file1.exe'); usort($files, function ($a, $b) { return strcmp(basename($a), basename($b)); }); print_r($files);

preferences:
30.2 ms | 407 KiB | 5 Q