3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_SESSION["referer"] = 'test'; $a = !empty($_SESSION["referer"]) ? $_SESSION["referer"] : (!empty($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : ''); print $a;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 11
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tfle9
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $1      '_SESSION'
          1        ASSIGN_DIM                                               $1, 'referer'
          2        OP_DATA                                                  'test'
    5     3        FETCH_IS                                         ~3      '_SESSION'
          4        ISSET_ISEMPTY_DIM_OBJ                         1  ~4      ~3, 'referer'
          5        BOOL_NOT                                         ~5      ~4
          6      > JMPZ                                                     ~5, ->11
          7    >   FETCH_R                      global              ~6      '_SESSION'
          8        FETCH_DIM_R                                      ~7      ~6, 'referer'
          9        QM_ASSIGN                                        ~8      ~7
         10      > JMP                                                      ->21
         11    >   FETCH_IS                                         ~9      '_SERVER'
         12        ISSET_ISEMPTY_DIM_OBJ                         1  ~10     ~9, 'HTTP_REFERER'
         13        BOOL_NOT                                         ~11     ~10
         14      > JMPZ                                                     ~11, ->19
         15    >   FETCH_R                      global              ~12     '_SERVER'
         16        FETCH_DIM_R                                      ~13     ~12, 'HTTP_REFERER'
         17        QM_ASSIGN                                        ~14     ~13
         18      > JMP                                                      ->20
         19    >   QM_ASSIGN                                        ~14     ''
         20    >   QM_ASSIGN                                        ~8      ~14
         21    >   ASSIGN                                                   !0, ~8
    7    22        ECHO                                                     !0
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.68 ms | 1394 KiB | 13 Q