3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hash = "0"; for ($i = 1; $i <= 100000; $i++) { if (hash_hmac('joaat', $i, 'mysecretkey') == $hash) { echo 'Found within ' . $i . PHP_EOL; break; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 3
Branch analysis from position: 17
Branch analysis from position: 3
filename:       /in/gYbT1
function name:  (null)
number of ops:  18
compiled vars:  !0 = $hash, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '0'
    5     1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->15
    6     3    >   INIT_FCALL                                               'hash_hmac'
          4        SEND_VAL                                                 'joaat'
          5        SEND_VAR                                                 !1
          6        SEND_VAL                                                 'mysecretkey'
          7        DO_ICALL                                         $4      
          8        IS_EQUAL                                                 !0, $4
          9      > JMPZ                                                     ~5, ->14
    7    10    >   CONCAT                                           ~6      'Found+within+', !1
         11        CONCAT                                           ~7      ~6, '%0A'
         12        ECHO                                                     ~7
    8    13      > JMP                                                      ->17
    5    14    >   PRE_INC                                                  !1
         15    >   IS_SMALLER_OR_EQUAL                                      !1, 100000
         16      > JMPNZ                                                    ~9, ->3
   10    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.28 ms | 1386 KiB | 15 Q