3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function genRandomString($length=10 ,$characters = '0123456789abcdefghijklmnopqrstuvwxyz',$string = '') { for ($p = 0; $p < $length; $p++) { $string .= $characters[mt_rand(0, strlen($characters)-1)]; } return $string; }
based on BlifT
Output for 5.6.38 - 7.3.0rc3