3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array=array(1=>'sonam',3=>'amit',2=>'sa'); echo reset($array); print_r($array);
based on D1koV
Output for 4.3.0 - 7.1.0
sonamArray ( [1] => sonam [3] => amit [2] => sa )