3v4l.org

run code in 300+ PHP versions simultaneously
<?php $serverSeed = '4aac3d2c5f1a0750abdd8b3b26aec3018877da8acdfe46523baa53e9586023d0ffafcddfb1463c17341e3e3f9d9eba73a4952ab61f572e328afa024ea01d311d'; $clientSeed = 'TWE2SmlF0yOPU5UT'; $nonce = '1'; { $seed1= $serverSeed.','.$clientSeed.','.$nonce; $seed=hash("sha512",$seed1); $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
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 14
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/XgTDv
function name:  (null)
number of ops:  36
compiled vars:  !0 = $serverSeed, !1 = $clientSeed, !2 = $nonce, !3 = $seed1, !4 = $seed, !5 = $offset, !6 = $number, !7 = $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, '1'
    9     3        CONCAT                                           ~11     !0, '%2C'
          4        CONCAT                                           ~12     ~11, !1
          5        CONCAT                                           ~13     ~12, '%2C'
          6        CONCAT                                           ~14     ~13, !2
          7        ASSIGN                                                   !3, ~14
   10     8        INIT_FCALL                                               'hash'
          9        SEND_VAL                                                 'sha512'
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                         $16     
         12        ASSIGN                                                   !4, $16
   11    13        ASSIGN                                                   !5, 0
   13    14    >   INIT_FCALL                                               'substr'
         15        SEND_VAR                                                 !4
         16        SEND_VAR                                                 !5
         17        SEND_VAL                                                 5
         18        DO_ICALL                                         $19     
         19        ASSIGN                                                   !6, $19
   14    20        INIT_FCALL                                               'hexdec'
         21        SEND_VAR                                                 !6
         22        DO_ICALL                                         $21     
         23        ASSIGN                                                   !6, $21
   15    24        ASSIGN_OP                                     1          !5, 5
   18    25        IS_SMALLER                                               999999, !6
         26      > JMPNZ                                                    ~24, ->14
   19    27    >   MOD                                              ~25     !6, 10000
         28        DIV                                              ~26     ~25, 100
         29        ASSIGN                                                   !7, ~26
   20    30        ECHO                                                     !7
   21    31        INIT_FCALL                                               'nl2br'
         32        SEND_VAL                                                 '%0A'
         33        DO_ICALL                                         $28     
         34        ECHO                                                     $28
   23    35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
35.41 ms | 462 KiB | 7 Q