3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $chars = array(0,1,2,3,4,5,6,7,8,9,'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'); $serial = ''; $max = count($chars)-1; for($j=0;$j<5000;$j++){ for($i=0;$i<12;$i++){ $serial .= (!($i % 3) && $i ? '-' : '').$chars[rand(0, $max)]; } echo $serial.PHP_EOL; $serial = ''; }
based on 0O3fH