3v4l.org

run code in 300+ PHP versions simultaneously
<?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; } }}}}}}
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.30, 8.2.0 - 8.2.25, 8.3.0 - 8.3.13

preferences:
77.46 ms | 407 KiB | 5 Q