3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; $len = strlen($s); $m = ''; for ($i = 0; $i < $len; $i ++) { $m .= $s[mt_rand(0, $len -1)]; } return $m;
Output for 4.3.0 - 7.1.0