3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array("5", "7", "11", "2", "10"); sort($a); var_dump($a);
based on iGcao
Output for 4.3.0 - 7.1.0
array(5) { [0]=> string(1) "2" [1]=> string(1) "5" [2]=> string(1) "7" [3]=> string(2) "10" [4]=> string(2) "11" }