3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $l = 'abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-'; $x=0; for ($r=16;$x<$r;$x++) { substr($l,mt_rand(0,strlen($l)-1),1); }
Output for 4.3.0 - 7.1.0