3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $imgs = array('1.jpg', '11.jpg', '3.jpg'); sort($imgs, SORT_NUMERIC); var_dump($imgs);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { [0]=> string(5) "1.jpg" [1]=> string(5) "3.jpg" [2]=> string(6) "11.jpg" }