3v4l.org

run code in 300+ PHP versions simultaneously
<?php $serverSeed = '7db5eef616a2c672630953954757df8400eeed22a3e0fc1ac6c5555200e122b91e6825b8faf19c723cb09de3da434970a157c21c31b6986e4a75b777361168bc'; $clientSeed = 'FFFFE380'; $nonce = 1; for($nonce =1; $nonce <= 20; $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; echo $nonce.":".$luckyNumber; echo ("\n"); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 5
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 10
Branch analysis from position: 25
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 32
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 39, Position 2 = 5
Branch analysis from position: 39
Branch analysis from position: 5
Branch analysis from position: 32
Branch analysis from position: 10
filename:       /in/fqrmc
function name:  (null)
number of ops:  40
compiled vars:  !0 = $serverSeed, !1 = $clientSeed, !2 = $nonce, !3 = $seed, !4 = $lucky, !5 = $luckyNumber
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '7db5eef616a2c672630953954757df8400eeed22a3e0fc1ac6c5555200e122b91e6825b8faf19c723cb09de3da434970a157c21c31b6986e4a75b777361168bc'
    4     1        ASSIGN                                                   !1, 'FFFFE380'
    5     2        ASSIGN                                                   !2, 1
    7     3        ASSIGN                                                   !2, 1
          4      > JMP                                                      ->37
    8     5    >   CONCAT                                           ~10     !0, '-'
          6        CONCAT                                           ~11     ~10, !1
          7        CONCAT                                           ~12     ~11, '-'
          8        CONCAT                                           ~13     ~12, !2
          9        ASSIGN                                                   !3, ~13
   11    10    >   INIT_FCALL                                               'sha1'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                         $15     
         13        ASSIGN                                                   !3, $15
   12    14        INIT_FCALL                                               'hexdec'
         15        INIT_FCALL                                               'substr'
         16        SEND_VAR                                                 !3
         17        SEND_VAL                                                 0
         18        SEND_VAL                                                 8
         19        DO_ICALL                                         $17     
         20        SEND_VAR                                                 $17
         21        DO_ICALL                                         $18     
         22        ASSIGN                                                   !4, $18
   13    23        IS_SMALLER                                               4294960000, !4
         24      > JMPNZ                                                    ~20, ->10
   15    25    >   MOD                                              ~21     !4, 10000
         26        DIV                                              ~22     ~21, 100
         27        ASSIGN                                                   !5, ~22
   17    28        IS_SMALLER                                               !5, 0
         29      > JMPZ                                                     ~24, ->32
   18    30    >   MUL                                              ~25     !5, -1
         31        ASSIGN                                                   !5, ~25
   21    32    >   CONCAT                                           ~27     !2, '%3A'
         33        CONCAT                                           ~28     ~27, !5
         34        ECHO                                                     ~28
   22    35        ECHO                                                     '%0A'
    7    36        PRE_INC                                                  !2
         37    >   IS_SMALLER_OR_EQUAL                                      !2, 20
         38      > JMPNZ                                                    ~30, ->5
   24    39    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.42 ms | 1466 KiB | 16 Q