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 = 100000; while($i--) { quickRandom(311); }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.1, 7.0.3 - 7.0.5, 7.0.8 - 7.1.0

Process exited with code 137.
Output for 7.0.2, 7.0.6 - 7.0.7