3v4l.org

run code in 300+ PHP versions simultaneously
<?php session_start(); $loggedOutLink = '<a href="logout.php">Log out</a>'; $loggedInLink = '<a href="login.php">Log in</a>'; if ($_SESSION['isLoggedIn']===TRUE){ echo $loggedInLink; } else { echo $loggedOutLink; } ?>
Finding entry points
Branch analysis from position: 0
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
filename:       /in/30826
function name:  (null)
number of ops:  12
compiled vars:  !0 = $loggedOutLink, !1 = $loggedInLink
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'session_start'
          1        DO_ICALL                                                 
    3     2        ASSIGN                                                   !0, '%3Ca+href%3D%22logout.php%22%3ELog+out%3C%2Fa%3E'
    4     3        ASSIGN                                                   !1, '%3Ca+href%3D%22login.php%22%3ELog+in%3C%2Fa%3E'
    6     4        FETCH_R                      global              ~5      '_SESSION'
          5        FETCH_DIM_R                                      ~6      ~5, 'isLoggedIn'
          6        TYPE_CHECK                                    8          ~6
          7      > JMPZ                                                     ~7, ->10
    7     8    >   ECHO                                                     !1
          9      > JMP                                                      ->11
    9    10    >   ECHO                                                     !0
   11    11    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.24 ms | 939 KiB | 16 Q