3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array("123", "456A", "78"); print_r(sort($a)); print_r($a); $b = array("456A", "78", "123"); print_r(sort($b)); print_r($b); $c = array("78", "123", "456A"); print_r(sort($c)); print_r($c); $d = array("78", "456A", "123"); print_r(sort($d)); print_r($d);
based on r52pS
Output for 4.3.0 - 7.2.0
1Array ( [0] => 123 [1] => 456A [2] => 78 ) 1Array ( [0] => 456A [1] => 78 [2] => 123 ) 1Array ( [0] => 78 [1] => 123 [2] => 456A ) 1Array ( [0] => 123 [1] => 456A [2] => 78 )