3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a1 = array("123", "45", "678"); sort($a1); var_dump($a1); $a2 = array("45", "678", "123"); sort($a2); var_dump($a2); $a3 = array("123", "45", "678"); sort($a3); var_dump($a3);
based on 6C6Il
Output for 5.5.0 - 7.3.0rc4
array(3) { [0]=> string(2) "45" [1]=> string(3) "123" [2]=> string(3) "678" } array(3) { [0]=> string(2) "45" [1]=> string(3) "123" [2]=> string(3) "678" } array(3) { [0]=> string(2) "45" [1]=> string(3) "123" [2]=> string(3) "678" }