3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $aImages = array ( '1___3tones123.jpg' => '3tones123.jpg', '10___20002020-BLUE.jpg' => '20002020-BLUE.jpg', '20___bigeyes01.jpg' => 'bigeyes01.jpg', '1___bigeyes02.jpg' => 'bigeyes02.jpg', ); uksort($aImages, 'strnatcmp'); $aImages = array_reverse($aImages, true); print_r($aImages);
Output for 4.3.0 - 7.1.0
Array ( [20___bigeyes01.jpg] => bigeyes01.jpg [10___20002020-BLUE.jpg] => 20002020-BLUE.jpg [1___bigeyes02.jpg] => bigeyes02.jpg [1___3tones123.jpg] => 3tones123.jpg )