3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function quickRandom($length = 16) { $length = intval($length, 10); $pool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $pool_length = 62; $output = ''; while($length--) { $output .= $pool[rand(0,$pool_length - 1)]; } return $output; } $i = 10000; while($i--) { quic kRandom(311); }
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected 'kRandom' (T_STRING) in /in/g4qZ4 on line 18
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/g4qZ4 on line 18
Process exited with code 255.