3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array=array(1=>'sonam',3=>'amit',2=>'sa'); reset($array); print_r($array);
based on 5pgQE
Output for 4.3.0 - 7.2.0
Array ( [1] => sonam [3] => amit [2] => sa )