3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array("a", "b", "1", "14","c", "d", "e", 1, 2, 3, 4, 5); sort($a); var_dump($a);
based on 8iAqa
Output for 4.3.0 - 7.2.0
array(12) { [0]=> string(1) "1" [1]=> string(2) "14" [2]=> string(1) "a" [3]=> string(1) "b" [4]=> string(1) "c" [5]=> string(1) "d" [6]=> string(1) "e" [7]=> int(1) [8]=> int(2) [9]=> int(3) [10]=> int(4) [11]=> int(5) }