3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $s = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; $len = strlen($s); $m = ''; for ($i = 0; $i < $length; $i ++) { $m .= $s[mt_rand(0, $len -1)]; } return $m;
Output for 5.5.0 - 7.1.0
Notice: Undefined variable: length in /in/LlKtq on line 6
Output for 4.3.0 - 5.4.45