3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (isset($_SESSION['isLoggedIn']) && $_SESSION['isLoggedIn']===TRUE ) { echo '<a href="html/login.php">Log in</a>'; } else { echo '<a href="html/logout.php">Log out</a>'; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/bHHM0
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_IS                                         ~0      '_SESSION'
          1        ISSET_ISEMPTY_DIM_OBJ                         0  ~1      ~0, 'isLoggedIn'
          2      > JMPZ_EX                                          ~1      ~1, ->7
          3    >   FETCH_R                      global              ~2      '_SESSION'
          4        FETCH_DIM_R                                      ~3      ~2, 'isLoggedIn'
          5        TYPE_CHECK                                    8  ~4      ~3
          6        BOOL                                             ~1      ~4
          7    > > JMPZ                                                     ~1, ->10
    4     8    >   ECHO                                                     '%3Ca+href%3D%22html%2Flogin.php%22%3ELog+in%3C%2Fa%3E'
          9      > JMP                                                      ->11
    8    10    >   ECHO                                                     '%3Ca+href%3D%22html%2Flogout.php%22%3ELog+out%3C%2Fa%3E'
   10    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.47 ms | 1393 KiB | 13 Q