3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (isset($_SESSION['username'])) { echo "Hello <b>{$_SESSION['username']}</b>"; } else { echo "Hello <b>Guest</b><br />"; echo "Would you like to login?"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mmOrG
function name:  (null)
number of ops:  13
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          ~0, 'username'
          2      > JMPZ                                                     ~1, ->10
    4     3    >   ROPE_INIT                                     3  ~5      'Hello+%3Cb%3E'
          4        FETCH_R                      global              ~2      '_SESSION'
          5        FETCH_DIM_R                                      ~3      ~2, 'username'
          6        ROPE_ADD                                      1  ~5      ~5, ~3
          7        ROPE_END                                      2  ~4      ~5, '%3C%2Fb%3E'
          8        ECHO                                                     ~4
          9      > JMP                                                      ->12
    8    10    >   ECHO                                                     'Hello+%3Cb%3EGuest%3C%2Fb%3E%3Cbr+%2F%3E'
    9    11        ECHO                                                     'Would+you+like+to+login%3F'
   11    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.63 ms | 1393 KiB | 13 Q