3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = 'zzzzzzzzzz'; do { $hash = hash_hmac('sha512', ++$password, 'some key'); } while(strpos($hash, "\0") === false); echo $password;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 1
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 1
filename:       /in/StlaQ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $password, !1 = $hash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'zzzzzzzzzz'
    6     1    >   INIT_FCALL                                               'hash_hmac'
          2        SEND_VAL                                                 'sha512'
          3        PRE_INC                                          ~3      !0
          4        SEND_VAL                                                 ~3
          5        SEND_VAL                                                 'some+key'
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    7     8        INIT_FCALL                                               'strpos'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 '%00'
         11        DO_ICALL                                         $6      
         12        TYPE_CHECK                                    4          $6
         13      > JMPNZ                                                    ~7, ->1
    9    14    >   ECHO                                                     !0
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.09 ms | 1398 KiB | 17 Q