3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $length = 16; list($usec, $sec) = explode(' ', microtime()); mt_srand((float) $sec + ((float) $usec * 100000)); $inputs = array_merge(range('z','a'),range(0,9),range('A','Z')); for($i=0; $i<$length; $i++) { $key .= $inputs{mt_rand(0,61)}; } return strtoupper($key);
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.1
Notice: Undefined variable: key in /in/WjiXP on line 10
Output for hhvm-3.15.4