3v4l.org

run code in 300+ PHP versions simultaneously
<?php $flag = "flag{abc}"; $c="a"; $h2 = password_hash (sha1($c, fa1se), PASSWORD_BCRYPT); echo "<div class='row'>"; if (password_verify (sha1($flag, fa1se), $h2) === true) { echo "<p>Here is your flag: <mark>$flag</mark></p>"; } else { echo "Here is the hash of your flag: " . sha1($flag, false); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 29
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vrCnZ
function name:  (null)
number of ops:  36
compiled vars:  !0 = $flag, !1 = $c, !2 = $h2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'flag%7Babc%7D'
    4     1        ASSIGN                                                   !1, 'a'
    5     2        INIT_FCALL                                               'password_hash'
          3        INIT_FCALL                                               'sha1'
          4        SEND_VAR                                                 !1
          5        FETCH_CONSTANT                                   ~5      'fa1se'
          6        SEND_VAL                                                 ~5
          7        DO_ICALL                                         $6      
          8        SEND_VAR                                                 $6
          9        SEND_VAL                                                 '2y'
         10        DO_ICALL                                         $7      
         11        ASSIGN                                                   !2, $7
    6    12        ECHO                                                     '%3Cdiv+class%3D%27row%27%3E'
    7    13        INIT_FCALL                                               'password_verify'
         14        INIT_FCALL                                               'sha1'
         15        SEND_VAR                                                 !0
         16        FETCH_CONSTANT                                   ~9      'fa1se'
         17        SEND_VAL                                                 ~9
         18        DO_ICALL                                         $10     
         19        SEND_VAR                                                 $10
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                         $11     
         22        TYPE_CHECK                                    8          $11
         23      > JMPZ                                                     ~12, ->29
    8    24    >   ROPE_INIT                                     3  ~14     '%3Cp%3EHere+is+your+flag%3A+%3Cmark%3E'
         25        ROPE_ADD                                      1  ~14     ~14, !0
         26        ROPE_END                                      2  ~13     ~14, '%3C%2Fmark%3E%3C%2Fp%3E'
         27        ECHO                                                     ~13
         28      > JMP                                                      ->35
   10    29    >   INIT_FCALL                                               'sha1'
         30        SEND_VAR                                                 !0
         31        SEND_VAL                                                 <false>
         32        DO_ICALL                                         $16     
         33        CONCAT                                           ~17     'Here+is+the+hash+of+your+flag%3A+', $16
         34        ECHO                                                     ~17
   12    35    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.48 ms | 1396 KiB | 19 Q