3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function rev($str) { if ( ! $str ) { return; } return rev(substr($str,1)).$str[0]; } echo rev('hola mundos');
Output for 5.3.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
sodnum aloh