3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['password'] = 'foo'; if(!isset($_POST["password"]) || $_POST["password"] != "swordfish" ){ die('</head><body><form action="index.php" method="post"> <input type="password" name="password"><input type="submit"></form>'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/XOO4N
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_W                      global              $0      '_POST'
          1        ASSIGN_DIM                                               $0, 'password'
          2        OP_DATA                                                  'foo'
    4     3        FETCH_IS                                         ~2      '_POST'
          4        ISSET_ISEMPTY_DIM_OBJ                         0  ~3      ~2, 'password'
          5        BOOL_NOT                                         ~4      ~3
          6      > JMPNZ_EX                                         ~4      ~4, ->11
          7    >   FETCH_R                      global              ~5      '_POST'
          8        FETCH_DIM_R                                      ~6      ~5, 'password'
          9        IS_NOT_EQUAL                                     ~7      ~6, 'swordfish'
         10        BOOL                                             ~4      ~7
         11    > > JMPZ                                                     ~4, ->13
    5    12    > > EXIT                                                     '%3C%2Fhead%3E%3Cbody%3E%3Cform+action%3D%22index.php%22+method%3D%22post%22%3E%0A++++%3Cinput+type%3D%22password%22+name%3D%22password%22%3E%3Cinput+type%3D%22submit%22%3E%3C%2Fform%3E'
    7    13    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.45 ms | 1393 KiB | 13 Q