3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_SESSION["referer"] = ''; $_SERVER["HTTP_REFERER"] = ''; $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 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 22
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ACdSo
function name:  (null)
number of ops:  27
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                                                  ''
    4     3        FETCH_W                      global              $3      '_SERVER'
          4        ASSIGN_DIM                                               $3, 'HTTP_REFERER'
          5        OP_DATA                                                  ''
    7     6        FETCH_IS                                         ~5      '_SESSION'
          7        ISSET_ISEMPTY_DIM_OBJ                         1  ~6      ~5, 'referer'
          8        BOOL_NOT                                         ~7      ~6
          9      > JMPZ                                                     ~7, ->14
         10    >   FETCH_R                      global              ~8      '_SESSION'
         11        FETCH_DIM_R                                      ~9      ~8, 'referer'
         12        QM_ASSIGN                                        ~10     ~9
         13      > JMP                                                      ->24
         14    >   FETCH_IS                                         ~11     '_SERVER'
         15        ISSET_ISEMPTY_DIM_OBJ                         1  ~12     ~11, 'HTTP_REFERER'
         16        BOOL_NOT                                         ~13     ~12
         17      > JMPZ                                                     ~13, ->22
         18    >   FETCH_R                      global              ~14     '_SERVER'
         19        FETCH_DIM_R                                      ~15     ~14, 'HTTP_REFERER'
         20        QM_ASSIGN                                        ~16     ~15
         21      > JMP                                                      ->23
         22    >   QM_ASSIGN                                        ~16     ''
         23    >   QM_ASSIGN                                        ~10     ~16
         24    >   ASSIGN                                                   !0, ~10
    9    25        ECHO                                                     !0
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.04 ms | 1395 KiB | 13 Q