3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(isset($_SESSION['user_type']) && $_SESSION['user_type']== 'admin') echo 'yes'; else echo 'no';
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/kELKD
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_IS                                         ~0      '_SESSION'
          1        ISSET_ISEMPTY_DIM_OBJ                         0  ~1      ~0, 'user_type'
          2      > JMPZ_EX                                          ~1      ~1, ->7
          3    >   FETCH_R                      global              ~2      '_SESSION'
          4        FETCH_DIM_R                                      ~3      ~2, 'user_type'
          5        IS_EQUAL                                         ~4      ~3, 'admin'
          6        BOOL                                             ~1      ~4
          7    > > JMPZ                                                     ~1, ->10
    4     8    >   ECHO                                                     'yes'
          9      > JMP                                                      ->11
    6    10    >   ECHO                                                     'no'
         11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.1 ms | 1393 KiB | 13 Q