3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function get_rand_str($len){ $result=''; $chars=preg_split('//','abcdef0123456789'); for($i=0;$i<$len;$i++) $result.=$chars[rand(0,count($chars)-1)]; return $result; } get_rand_str(256);
Output for 4.3.0 - 7.1.0