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', ); krsort($aImages, SORT_NATURAL);
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 4.3.0 - 5.3.29
Notice: Use of undefined constant SORT_NATURAL - assumed 'SORT_NATURAL' in /in/nustr on line 10 Warning: krsort() expects parameter 2 to be long, string given in /in/nustr on line 10