3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $serverSeed = "486d6afbfd8334739ced51a3e82602a08e98c867298d29e9427019b2424531721792735e96d69362500d7e06d7fdada659bc393d8dfa0522def4fc00812a402c"; $clientSeed = "4g0woassye3p2nt8gasaj7achzfoff1its0y6eu0ge6c2c5vhbpv3zxwsg7a"; $nonce = "286"; $seed = $serverSeed.'-'.$clientSeed.'-'.$nonce; do { $seed = sha1($seed); $lucky = hexdec(substr($seed,0,8)); } while ($lucky > 4294960000); $luckyNumber = ($lucky % 10000) / 100; if ($luckyNumber < 0) $luckyNumber = -$luckyNumber; echo $luckyNumber;
based on 30URc
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.1.7
66.89