3v4l.org

run code in 300+ PHP versions simultaneously
<?php $serverSeed = '12e110ac5606c5aa49d906a939770a94ee994f6e2a5457fb88ee0761ec65c38bd18b071a7d68e7dcaa2f4cec81931f7e0d1a8861bf4b4b7d0565bef7952d417a'; $clientSeed = '6feaee330fd4c05949839893bf5a7aed6167d65f'; $nonce = 1; for($nonce =200000; $nonce < 202000; $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 nl2br ("\n"); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 5
Branch analysis from position: 42
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 = 42, Position 2 = 5
Branch analysis from position: 42
Branch analysis from position: 5
Branch analysis from position: 32
Branch analysis from position: 10
filename:       /in/8pu64
function name:  (null)
number of ops:  43
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, '12e110ac5606c5aa49d906a939770a94ee994f6e2a5457fb88ee0761ec65c38bd18b071a7d68e7dcaa2f4cec81931f7e0d1a8861bf4b4b7d0565bef7952d417a'
    4     1        ASSIGN                                                   !1, '6feaee330fd4c05949839893bf5a7aed6167d65f'
    5     2        ASSIGN                                                   !2, 1
    7     3        ASSIGN                                                   !2, 200000
          4      > JMP                                                      ->40
    8     5    >   CONCAT                                           ~10     !0, '-'
          6        CONCAT                                           ~11     ~10, !1
          7        CONCAT                                           ~12     ~11, '-'
          8        CONCAT                                           ~13     ~12, !2
          9        ASSIGN                                                   !3, ~13
   10    10    >   INIT_FCALL                                               'sha1'
         11        SEND_VAR                                                 !3
         12        DO_ICALL                                         $15     
         13        ASSIGN                                                   !3, $15
   11    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
   12    23        IS_SMALLER                                               4294960000, !4
         24      > JMPNZ                                                    ~20, ->10
   14    25    >   MOD                                              ~21     !4, 10000
         26        DIV                                              ~22     ~21, 100
         27        ASSIGN                                                   !5, ~22
   16    28        IS_SMALLER                                               !5, 0
         29      > JMPZ                                                     ~24, ->32
   17    30    >   MUL                                              ~25     !5, -1
         31        ASSIGN                                                   !5, ~25
   20    32    >   CONCAT                                           ~27     !2, '%3A'
         33        CONCAT                                           ~28     ~27, !5
         34        ECHO                                                     ~28
   21    35        INIT_FCALL                                               'nl2br'
         36        SEND_VAL                                                 '%0A'
         37        DO_ICALL                                         $29     
         38        ECHO                                                     $29
    7    39        PRE_INC                                                  !2
         40    >   IS_SMALLER                                               !2, 202000
         41      > JMPNZ                                                    ~31, ->5
   23    42    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.32 ms | 1400 KiB | 21 Q