3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $id = 246; $ret = ''; $tam = strlen($id); for($x = 0; $x < $tam;$x++){ $y = substr($id, $x, 1); switch($y){ case '0': $y = 'm'; break; case '1': $y = 's'; break; case '2': $y = 'g'; break; case '3': $y = 'j'; break; case '4': $y = 'h'; break; case '5': $y = 't'; break; case '6': $y = 'w'; break; case '7': $y = 'z'; break; case '8': $y = 'k'; break; case '9': $y = 'p'; break; } $ret .= $y; } echo $ret;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
ghw