3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "Narendra"; $strrev = ""; $i = 0; while(isset($str[$i])){ $strrev = $str[$i].$strrev; $i++; } echo $strrev;
based on Lb7J0
Output for 5.5.0 - 7.3.0beta1
ardneraN