3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array('0' => 3,'1' => 2,'2' => 1); asort($array); print_r($array); ?>
Output for 4.3.0 - 7.1.0
Array ( [2] => 1 [1] => 2 [0] => 3 )