3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $mang1 = array ("c47a64ecf89f1b1a42000b2935ac6b21", "c87cc240e96965d6b4a082276706d086","df344e84663ef8ed7f3f543f7163adbb","a1d8259cc22526a41cb08a4912d14fa5"); for ($i1=0 ; $i1 < count ($mang1); $i1++){ for ($i2=0 ; $i2< count($mang1); $i2++){ for ( $i3=0 ; $i3< count ($mang1) ; $i3++){ for ( $i4=0 ; $i4< count ($mang1); $i4++){ $serverSeed = $mang1[$i1].$mang1[$i2].$mang1[$i3].$mang1[$i4]; $clientSeed = 'c034ccb72c85110ae15de61e89b43cf84a5e4113'; $nonce = 10; for($nonce =1; $nonce < 10; $nonce++){ $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; if ($nonce == 1 and $luckyNumber == 74.87){ if ($nonce == 2 and $luckyNumber == 30.41){ echo $nonce.":".$luckyNumber; echo nl2br ("\n"); echo $serverSeed; } }}}}}}
based on CjIKr
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.1