3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.54 ms | 1400 KiB | 21 Q