3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sql = "Select `person_id`, `person_link_name`, `person_fullname` from `{$this->data[2]['db_preffix']}person_description` order by `person_id` asc"; $stmt = $this->data[0]->sql_handler->prepare($sql); unset($sql); // if($stmt->execute() && $stmt->store_result() && $stmt->num_rows > 0) { $menu = ""; $i = 0; while($data = $stmt->fetch_assoc()) { $menu .= " <li> <a id=\"pers_".($i + 1)."\" href=\"{$data['person_link_name']}\"> {$data['person_fullname']} </a> </li>"; $i += 1; } } else { $this->data[1]->error_page("No data...."); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 20, Position 2 = 23
Branch analysis from position: 20
2 jumps found. (Code = 46) Position 1 = 24, Position 2 = 27
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 48
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 31
Branch analysis from position: 47
1 jumps found. (Code = 42) Position 1 = 54
Branch analysis from position: 54
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 47, Position 2 = 31
Branch analysis from position: 47
Branch analysis from position: 31
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
Branch analysis from position: 23
filename:       /in/DbLFd
function name:  (null)
number of ops:  55
compiled vars:  !0 = $sql, !1 = $stmt, !2 = $menu, !3 = $i, !4 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ROPE_INIT                                     3  ~10     'Select+%60person_id%60%2C+%60person_link_name%60%2C+%60person_fullname%60+from+%60'
          1        FETCH_THIS                                       $5      
          2        FETCH_OBJ_R                                      ~6      $5, 'data'
          3        FETCH_DIM_R                                      ~7      ~6, 2
          4        FETCH_DIM_R                                      ~8      ~7, 'db_preffix'
          5        ROPE_ADD                                      1  ~10     ~10, ~8
          6        ROPE_END                                      2  ~9      ~10, 'person_description%60+order+by+%60person_id%60+asc'
          7        ASSIGN                                                   !0, ~9
    5     8        FETCH_THIS                                       $13     
          9        FETCH_OBJ_R                                      ~14     $13, 'data'
         10        FETCH_DIM_R                                      ~15     ~14, 0
         11        FETCH_OBJ_R                                      ~16     ~15, 'sql_handler'
         12        INIT_METHOD_CALL                                         ~16, 'prepare'
         13        SEND_VAR_EX                                              !0
         14        DO_FCALL                                      0  $17     
         15        ASSIGN                                                   !1, $17
    6    16        UNSET_CV                                                 !0
    9    17        INIT_METHOD_CALL                                         !1, 'execute'
         18        DO_FCALL                                      0  $19     
         19      > JMPZ_EX                                          ~20     $19, ->23
         20    >   INIT_METHOD_CALL                                         !1, 'store_result'
         21        DO_FCALL                                      0  $21     
         22        BOOL                                             ~20     $21
         23    > > JMPZ_EX                                          ~20     ~20, ->27
         24    >   FETCH_OBJ_R                                      ~22     !1, 'num_rows'
         25        IS_SMALLER                                       ~23     0, ~22
         26        BOOL                                             ~20     ~23
         27    > > JMPZ                                                     ~20, ->48
   12    28    >   ASSIGN                                                   !2, ''
   14    29        ASSIGN                                                   !3, 0
   16    30      > JMP                                                      ->43
   20    31    >   ADD                                              ~26     !3, 1
         32        CONCAT                                           ~27     '%0A++++++++++++++++++++++++%3Cli%3E%0A++++++++++++++++++++++++++++%3Ca+id%3D%22pers_', ~26
         33        ROPE_INIT                                     5  ~31     '%22+href%3D%22'
         34        FETCH_DIM_R                                      ~28     !4, 'person_link_name'
         35        ROPE_ADD                                      1  ~31     ~31, ~28
         36        ROPE_ADD                                      2  ~31     ~31, '%22%3E%0A++++++++++++++++++++++++++++++++'
   21    37        FETCH_DIM_R                                      ~29     !4, 'person_fullname'
         38        ROPE_ADD                                      3  ~31     ~31, ~29
         39        ROPE_END                                      4  ~30     ~31, '%0A++++++++++++++++++++++++++++%3C%2Fa%3E%0A++++++++++++++++++++++++%3C%2Fli%3E'
         40        CONCAT                                           ~34     ~27, ~30
         41        ASSIGN_OP                                     8          !2, ~34
   24    42        ASSIGN_OP                                     1          !3, 1
   16    43    >   INIT_METHOD_CALL                                         !1, 'fetch_assoc'
         44        DO_FCALL                                      0  $37     
         45        ASSIGN                                           ~38     !4, $37
         46      > JMPNZ                                                    ~38, ->31
         47    > > JMP                                                      ->54
   30    48    >   FETCH_THIS                                       $39     
         49        FETCH_OBJ_R                                      ~40     $39, 'data'
         50        FETCH_DIM_R                                      ~41     ~40, 1
         51        INIT_METHOD_CALL                                         ~41, 'error_page'
         52        SEND_VAL_EX                                              'No+data....'
         53        DO_FCALL                                      0          
   31    54    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.53 ms | 1399 KiB | 13 Q