3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('123', '456A', '78'); sort($a, SORT_STRING); print_r($a); $b = array('456A', '78', '123'); sort($b, SORT_STRING); print_r($b); $c = array('78', '123', '456A'); sort($c, SORT_STRING); print_r($c); $d = array('78', '456A', '123'); sort($d, SORT_STRING); print_r($d); ?>
based on 8t5pc
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [0] => 123 [1] => 456A [2] => 78 ) Array ( [0] => 123 [1] => 456A [2] => 78 ) Array ( [0] => 123 [1] => 456A [2] => 78 ) Array ( [0] => 123 [1] => 456A [2] => 78 )