3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 42
Branch analysis from position: 42
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 32
Branch analysis from position: 47
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 32
Branch analysis from position: 47
Branch analysis from position: 32
filename:       /in/hvFRk
function name:  (null)
number of ops:  49
compiled vars:  !0 = $db, !1 = $db_select, !2 = $username, !3 = $categorie, !4 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'mysqli_connect'
          1        SEND_VAL_EX                                              'localhost'
          2        SEND_VAL_EX                                              'root'
          3        SEND_VAL_EX                                              ''
          4        SEND_VAL_EX                                              'DBsito'
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !0, $5
    3     7        BOOL_NOT                                         ~7      !0
          8      > JMPZ                                                     ~7, ->13
    5     9    >   INIT_FCALL_BY_NAME                                       'mysqli_error'
         10        DO_FCALL                                      0  $8      
         11        CONCAT                                           ~9      'Could+not+connect+to+database%3A+', $8
         12      > EXIT                                                     ~9
    8    13    >   INIT_FCALL_BY_NAME                                       'mysqli_select_db'
         14        SEND_VAR_EX                                              !0
         15        SEND_VAL_EX                                              'DBsito'
         16        DO_FCALL                                      0  $10     
         17        ASSIGN                                                   !1, $10
    9    18        INIT_FCALL                                               'session_start'
         19        DO_ICALL                                                 
   10    20        FETCH_R                      global              ~13     '_SESSION'
         21        FETCH_DIM_R                                      ~14     ~13, 'username'
         22        ASSIGN                                                   !2, ~14
   12    23        INIT_FCALL_BY_NAME                                       'mysqli_query'
         24        SEND_VAR_EX                                              !0
         25        ROPE_INIT                                     3  ~17     'SELECT+%2A+FROM+categoria+WHERE+BINARY+categoria.user_utente+%3D+BINARY+%27'
         26        ROPE_ADD                                      1  ~17     ~17, !2
         27        ROPE_END                                      2  ~16     ~17, '%27'
         28        SEND_VAL_EX                                              ~16
         29        DO_FCALL                                      0  $19     
         30        ASSIGN                                                   !3, $19
   16    31      > JMP                                                      ->42
   19    32    >   INIT_FCALL                                               'urlencode'
         33        FETCH_DIM_R                                      ~21     !4, 'categoria'
         34        SEND_VAL                                                 ~21
         35        DO_ICALL                                         $22     
         36        CONCAT                                           ~23     '%0A++++++++++++%3Ca+href%3D%22categoria.php%3Fcategoria%3D', $22
         37        CONCAT                                           ~24     ~23, '%22%3E%0A++++++++++++%3Cli+class%3D%22list-item%22%3E%3Cimg+class%3D%22card-icone%22+shadow-lg+p-3+mb-5+src%3D%22img%2Fupload%2F'
   20    38        FETCH_DIM_R                                      ~25     !4, 'icona'
         39        CONCAT                                           ~26     ~24, ~25
         40        CONCAT                                           ~27     ~26, '%22+%26nbsp%3B++%3E%0A++++++++++++%3C%2Fli%3E%0A++++++++++++%3C%2Fa%3E'
         41        ECHO                                                     ~27
   16    42    >   INIT_FCALL_BY_NAME                                       'mysqli_fetch_assoc'
         43        SEND_VAR_EX                                              !3
         44        DO_FCALL                                      0  $28     
         45        ASSIGN                                           ~29     !4, $28
         46      > JMPNZ                                                    ~29, ->32
   25    47    >   ECHO                                                     '++++++++++++++%3Cscript+type%3D%22text%2Fjavascript%22+src%3D%22js%2Fhome.js%22%3E%0A++++++++++++++%3C%2Fscript%3E'
   26    48      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
277.67 ms | 975 KiB | 15 Q