3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function generateHash($delka_retezce,$capt=false) { if ($capt==true) $mozne_znaky='123456789ABCDEFGHIJKLMNPQRSTUVWXYZ'; else $mozne_znaky='abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ'; $vystup=''; for ($i=0;$i<$delka_retezce;$i++) $vystup.=$mozne_znaky[mt_rand(0,strlen($mozne_znaky)-1)]; return $vystup; } function generateServerSeed() { $rand_nr=mt_rand(0.01*100,99.99*100)/100; if (mt_rand(0,1)==1) $pre_rand=($rand_nr-0.01); else $pre_rand=($rand_nr+0.01); $str=generateHash(26).'-'.((double)(($pre_rand+0.001).mt_rand(0,99999999999999999999999999999))); return $str; } function getNumber() { $serverseed="a36b60f397d91cddb1e64a93b4f8ec82420e50b110851266d503398a324857ba"; $seedhash=substr($serverseed,0,27); $zzserverseed=(double)substr($serverseed,27); echo $seedhash."<br>"; echo $zzserverseed."<br>"; } getNumber(); ?>
based on 3JDGZ
Output for 4.3.0 - 7.2.0
a36b60f397d91cddb1e64a93b4f<br>8<br>