3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
ghw

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
52.46 ms | 401 KiB | 8 Q