3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $uid=8193; function q1() { global $uid; srand($uid); $n=50;$str=""; while($n--) { $char=rand(32,126); if(($char>=48 && $char<=57) || ($char>=65 && $char<=90) || ($char>=97 && $char <=122)) $str=$str.chr($char); } return $str; } echo q1();
Output for 7.1.0
BLJxpSmM9UiASKNasKqK24e53W7hpz
Output for 4.3.0 - 7.0.14
1lVZLaubSLJbmBk6UEo8u2z8tngBPLFhs4cbVeNW