3v4l.org

run code in 300+ PHP versions simultaneously
<?php $name = '11'; $password = 11; if ($name == $password) { print 'Your password can not be your name.'; } else if (sha1($name) === sha1($password)) { print 'Flag: '; } else { print 'Invalid password.'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/IZR1U
function name:  (null)
number of ops:  18
compiled vars:  !0 = $name, !1 = $password
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '11'
    4     1        ASSIGN                                                   !1, 11
    6     2        IS_EQUAL                                                 !0, !1
          3      > JMPZ                                                     ~4, ->6
    7     4    >   ECHO                                                     'Your+password+can+not+be+your+name.'
          5      > JMP                                                      ->17
    8     6    >   INIT_FCALL                                               'sha1'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        INIT_FCALL                                               'sha1'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $6      
         12        IS_IDENTICAL                                             $5, $6
         13      > JMPZ                                                     ~7, ->16
    9    14    >   ECHO                                                     'Flag%3A+'
         15      > JMP                                                      ->17
   11    16    >   ECHO                                                     'Invalid+password.'
   12    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.22 ms | 1395 KiB | 15 Q