3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function string_reverse($str) { $temp = ''; for( $i = mb_strlen($str); $i >=0 ; $i--) { $temp.= $str{$i}; } return $temp; } echo string_reverse('Output') ;
based on A6Sdt
Output for 5.6.0 - 7.3.0rc4
Notice: Uninitialized string offset: 6 in /in/XhSbl on line 6 tuptuO