3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function rnd($seed) { srand($seed); $str = ''; for (;;) { $k = rand(0, 27); if ($k == 0) { break; } $str .= chr(90 + $k); } return $str; } echo rnd(-229985452);
Output for 7.1.0
hleidc
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.0.14
hp[kjipr`s[onsam\[m`\ophgidkeretlfi`uc]`a^u
Output for hhvm-3.10.0

Process exited with code 153.