3v4l.org

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