3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array("1" => "C", "2" => "B", "3" => "A"); print_r($arr); asort($arr); print_r($arr);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Array ( [1] => C [2] => B [3] => A ) Array ( [3] => A [2] => B [1] => C )