3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(5, "43", 2, "10", SORT_NUMERIC ); sort($a); var_dump($a);
based on gQefi
Output for 5.5.0 - 7.2.0
array(5) { [0]=> int(1) [1]=> int(2) [2]=> int(5) [3]=> string(2) "10" [4]=> string(2) "43" }