3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* IMPORT SPORTS CATEGORIES */ echo "import categories for lang=$lang\n"; $url = "https://www.bet3000.com/".$lang."/jsonrpc/?jsonrpc=2.0&id=0&method=sportsbook.get_active_categories"; try { $data = file_get_contents($url); $data = json_decode($data, true); $query = "UPDATE home_categories SET active=0"; if (!$debug) { mysql_query($query); } $cat_lvl_ids[0] = array("id" => 0,"label" => ""); $prev_lvl = 0; $parent_id = 0; $index = 0; $flag = false; $sortid=0; foreach ($data ['categories'] as $key => $value){ $sortid++; $cat = new Category($value); $lvl = $cat->get_level(); $id = $cat->get_id(); $active = $cat->get_activated_id(); $cat_lvl_ids[$lvl]["id"] = $id; $parent_id = $cat_lvl_ids[$lvl-1]["id"]; $parent_lbl = ""; if(!empty($cat_lvl_ids[$lvl-1]["label"])) { $parent_lbl = $cat_lvl_ids[$lvl-1]["label"]." / "; } $path = $parent_lbl . $cat->get_label(); $cat_lvl_ids[$lvl]["label"] = $path; $explode = explode(" / ",$path); $detail = $explode[count($explode)-1]; $sport = $explode[0]; $qcheck="SELECT * FROM `home_categories` WHERE cid=".$id." AND lang='".$lang."'"; $rcheck=mysql_query($qcheck); if (mysql_num_rows($rcheck)>0) { $ocheck=mysql_fetch_object($rcheck); $sqladd =""; $sqladd.= ",path='".trim(mysql_real_escape_string($path))."', detail='".trim(mysql_real_escape_string($detail))."'"; // UPDATE path,detail,sortid,active $querynew="UPDATE home_categories SET active=".$active.",sortid=".$sortid.$sqladd." WHERE cid=".$id." AND lang='".$lang."'"; mysql_query($querynew); echo mysql_error(); } else { $sqlheaderadd=""; $sqladd =""; $query = "INSERT IGNORE INTO `home_categories` (cid,lang,detail,path,topcatid,stufe,sport,sortid,active) VALUES (". $id.", ". "'".$lang."', ". "'".trim(mysql_real_escape_string($detail))."', ". "'".trim(mysql_real_escape_string($path))."', ". $parent_id.", ". $lvl.", ". "'".trim(mysql_real_escape_string($sport))."', ". $sortid.", ". $active. ")"; $resultInsert = mysql_query($query); if(!$resultInsert) echo mysql_error()."<br>$query"; } $prev_lvl = $lvl; } //foreach($result as $v) { // echo $value."<br>"; //} } catch(Exception $e) { echo $e->getMessage(); } echo 'Categories added to database'; class Category { private $id; private $lvl; private $label; private $activated_id; private $children; public function __construct($cat) { $this->id = $cat['id']; $this->lvl = $cat['level']; $this->label = $cat['label']; $this->activated_id = $cat['activated_id']; $this->children = array(); } public function get_id() { return $this->id; } public function get_level() { return $this->lvl; } public function get_label() { return $this->label; } public function get_activated_id() { return $this->activated_id; } public function get_children() { return $this->children; } public function set_id($id) { $this->id = $id; } public function set_level($lvl) { $this->lvl = $lvl; } public function set_label($label) { $this->label = $label; } public function set_children($children) { $this->children = $children; } public function add_child($child) { $this->children[] = $child; } public function get_child($index) { return $this->children[$index]; } public function remove_child($child,$index) { $this->children[] = null; } public function __toString() { return "Category Lvl:".$this->get_level()." - ".$this->get_id(). ":".$this->get_label(); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 22
Branch analysis from position: 19
2 jumps found. (Code = 77) Position 1 = 31, Position 2 = 193
Branch analysis from position: 31
2 jumps found. (Code = 78) Position 1 = 32, Position 2 = 193
Branch analysis from position: 32
2 jumps found. (Code = 43) Position 1 = 60, Position 2 = 65
Branch analysis from position: 60
2 jumps found. (Code = 43) Position 1 = 97, Position 2 = 136
Branch analysis from position: 97
1 jumps found. (Code = 42) Position 1 = 191
Branch analysis from position: 191
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
Branch analysis from position: 136
2 jumps found. (Code = 43) Position 1 = 185, Position 2 = 191
Branch analysis from position: 185
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
Branch analysis from position: 191
Branch analysis from position: 65
Branch analysis from position: 193
1 jumps found. (Code = 42) Position 1 = 199
Branch analysis from position: 199
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 193
Branch analysis from position: 22
Found catch point at position: 195
Branch analysis from position: 195
2 jumps found. (Code = 107) Position 1 = 196, Position 2 = -2
Branch analysis from position: 196
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gg4li
function name:  (null)
number of ops:  202
compiled vars:  !0 = $lang, !1 = $url, !2 = $data, !3 = $query, !4 = $debug, !5 = $cat_lvl_ids, !6 = $prev_lvl, !7 = $parent_id, !8 = $index, !9 = $flag, !10 = $sortid, !11 = $value, !12 = $key, !13 = $cat, !14 = $lvl, !15 = $id, !16 = $active, !17 = $parent_lbl, !18 = $path, !19 = $explode, !20 = $detail, !21 = $sport, !22 = $qcheck, !23 = $rcheck, !24 = $ocheck, !25 = $sqladd, !26 = $querynew, !27 = $sqlheaderadd, !28 = $resultInsert, !29 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ROPE_INIT                                     3  ~31     'import+categories+for+lang%3D'
          1        ROPE_ADD                                      1  ~31     ~31, !0
          2        ROPE_END                                      2  ~30     ~31, '%0A'
          3        ECHO                                                     ~30
    6     4        CONCAT                                           ~33     'https%3A%2F%2Fwww.bet3000.com%2F', !0
          5        CONCAT                                           ~34     ~33, '%2Fjsonrpc%2F%3Fjsonrpc%3D2.0%26id%3D0%26method%3Dsportsbook.get_active_categories'
          6        ASSIGN                                                   !1, ~34
    8     7        INIT_FCALL                                               'file_get_contents'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $36     
         10        ASSIGN                                                   !2, $36
    9    11        INIT_FCALL                                               'json_decode'
         12        SEND_VAR                                                 !2
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $38     
         15        ASSIGN                                                   !2, $38
   11    16        ASSIGN                                                   !3, 'UPDATE+home_categories+SET+active%3D0'
   12    17        BOOL_NOT                                         ~41     !4
         18      > JMPZ                                                     ~41, ->22
         19    >   INIT_FCALL_BY_NAME                                       'mysql_query'
         20        SEND_VAR_EX                                              !3
         21        DO_FCALL                                      0          
   14    22    >   ASSIGN_DIM                                               !5, 0
         23        OP_DATA                                                  <array>
   15    24        ASSIGN                                                   !6, 0
   16    25        ASSIGN                                                   !7, 0
   17    26        ASSIGN                                                   !8, 0
   18    27        ASSIGN                                                   !9, <false>
   19    28        ASSIGN                                                   !10, 0
   20    29        FETCH_DIM_R                                      ~49     !2, 'categories'
         30      > FE_RESET_R                                       $50     ~49, ->193
         31    > > FE_FETCH_R                                       ~51     $50, !11, ->193
         32    >   ASSIGN                                                   !12, ~51
   21    33        PRE_INC                                                  !10
   22    34        NEW                                              $54     'Category'
         35        SEND_VAR_EX                                              !11
         36        DO_FCALL                                      0          
         37        ASSIGN                                                   !13, $54
   23    38        INIT_METHOD_CALL                                         !13, 'get_level'
         39        DO_FCALL                                      0  $57     
         40        ASSIGN                                                   !14, $57
   24    41        INIT_METHOD_CALL                                         !13, 'get_id'
         42        DO_FCALL                                      0  $59     
         43        ASSIGN                                                   !15, $59
   25    44        INIT_METHOD_CALL                                         !13, 'get_activated_id'
         45        DO_FCALL                                      0  $61     
         46        ASSIGN                                                   !16, $61
   26    47        FETCH_DIM_W                                      $63     !5, !14
         48        ASSIGN_DIM                                               $63, 'id'
         49        OP_DATA                                                  !15
   27    50        SUB                                              ~65     !14, 1
         51        FETCH_DIM_R                                      ~66     !5, ~65
         52        FETCH_DIM_R                                      ~67     ~66, 'id'
         53        ASSIGN                                                   !7, ~67
   28    54        ASSIGN                                                   !17, ''
   29    55        SUB                                              ~70     !14, 1
         56        FETCH_DIM_IS                                     ~71     !5, ~70
         57        ISSET_ISEMPTY_DIM_OBJ                         1  ~72     ~71, 'label'
         58        BOOL_NOT                                         ~73     ~72
         59      > JMPZ                                                     ~73, ->65
   30    60    >   SUB                                              ~74     !14, 1
         61        FETCH_DIM_R                                      ~75     !5, ~74
         62        FETCH_DIM_R                                      ~76     ~75, 'label'
         63        CONCAT                                           ~77     ~76, '+%2F+'
         64        ASSIGN                                                   !17, ~77
   32    65    >   INIT_METHOD_CALL                                         !13, 'get_label'
         66        DO_FCALL                                      0  $79     
         67        CONCAT                                           ~80     !17, $79
         68        ASSIGN                                                   !18, ~80
   33    69        FETCH_DIM_W                                      $82     !5, !14
         70        ASSIGN_DIM                                               $82, 'label'
         71        OP_DATA                                                  !18
   34    72        INIT_FCALL                                               'explode'
         73        SEND_VAL                                                 '+%2F+'
         74        SEND_VAR                                                 !18
         75        DO_ICALL                                         $84     
         76        ASSIGN                                                   !19, $84
   35    77        COUNT                                            ~86     !19
         78        SUB                                              ~87     ~86, 1
         79        FETCH_DIM_R                                      ~88     !19, ~87
         80        ASSIGN                                                   !20, ~88
   36    81        FETCH_DIM_R                                      ~90     !19, 0
         82        ASSIGN                                                   !21, ~90
   37    83        CONCAT                                           ~92     'SELECT+%2A+FROM+%60home_categories%60+WHERE+cid%3D', !15
         84        CONCAT                                           ~93     ~92, '+AND+lang%3D%27'
         85        CONCAT                                           ~94     ~93, !0
         86        CONCAT                                           ~95     ~94, '%27'
         87        ASSIGN                                                   !22, ~95
   38    88        INIT_FCALL_BY_NAME                                       'mysql_query'
         89        SEND_VAR_EX                                              !22
         90        DO_FCALL                                      0  $97     
         91        ASSIGN                                                   !23, $97
   39    92        INIT_FCALL_BY_NAME                                       'mysql_num_rows'
         93        SEND_VAR_EX                                              !23
         94        DO_FCALL                                      0  $99     
         95        IS_SMALLER                                               0, $99
         96      > JMPZ                                                     ~100, ->136
   40    97    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_object'
         98        SEND_VAR_EX                                              !23
         99        DO_FCALL                                      0  $101    
        100        ASSIGN                                                   !24, $101
   41   101        ASSIGN                                                   !25, ''
   42   102        INIT_FCALL                                               'trim'
        103        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
        104        SEND_VAR_EX                                              !18
        105        DO_FCALL                                      0  $104    
        106        SEND_VAR                                                 $104
        107        DO_ICALL                                         $105    
        108        CONCAT                                           ~106    '%2Cpath%3D%27', $105
        109        CONCAT                                           ~107    ~106, '%27%2C+detail%3D%27'
        110        INIT_FCALL                                               'trim'
        111        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
        112        SEND_VAR_EX                                              !20
        113        DO_FCALL                                      0  $108    
        114        SEND_VAR                                                 $108
        115        DO_ICALL                                         $109    
        116        CONCAT                                           ~110    ~107, $109
        117        CONCAT                                           ~111    ~110, '%27'
        118        ASSIGN_OP                                     8          !25, ~111
   44   119        CONCAT                                           ~113    'UPDATE+home_categories+SET+active%3D', !16
        120        CONCAT                                           ~114    ~113, '%2Csortid%3D'
        121        CONCAT                                           ~115    ~114, !10
        122        CONCAT                                           ~116    ~115, !25
        123        CONCAT                                           ~117    ~116, '+WHERE+cid%3D'
        124        CONCAT                                           ~118    ~117, !15
        125        CONCAT                                           ~119    ~118, '+AND+lang%3D%27'
        126        CONCAT                                           ~120    ~119, !0
        127        CONCAT                                           ~121    ~120, '%27'
        128        ASSIGN                                                   !26, ~121
   45   129        INIT_FCALL_BY_NAME                                       'mysql_query'
        130        SEND_VAR_EX                                              !26
        131        DO_FCALL                                      0          
   46   132        INIT_FCALL_BY_NAME                                       'mysql_error'
        133        DO_FCALL                                      0  $124    
        134        ECHO                                                     $124
        135      > JMP                                                      ->191
   49   136    >   ASSIGN                                                   !27, ''
   50   137        ASSIGN                                                   !25, ''
   53   138        CONCAT                                           ~127    'INSERT+IGNORE+INTO+%60home_categories%60+%28cid%2Clang%2Cdetail%2Cpath%2Ctopcatid%2Cstufe%2Csport%2Csortid%2Cactive%29+VALUES+%28', !15
        139        CONCAT                                           ~128    ~127, '%2C+'
   54   140        CONCAT                                           ~129    ~128, '%27'
        141        CONCAT                                           ~130    ~129, !0
        142        CONCAT                                           ~131    ~130, '%27%2C+'
   55   143        CONCAT                                           ~132    ~131, '%27'
        144        INIT_FCALL                                               'trim'
        145        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
        146        SEND_VAR_EX                                              !20
        147        DO_FCALL                                      0  $133    
        148        SEND_VAR                                                 $133
        149        DO_ICALL                                         $134    
        150        CONCAT                                           ~135    ~132, $134
        151        CONCAT                                           ~136    ~135, '%27%2C+'
   56   152        CONCAT                                           ~137    ~136, '%27'
        153        INIT_FCALL                                               'trim'
        154        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
        155        SEND_VAR_EX                                              !18
        156        DO_FCALL                                      0  $138    
        157        SEND_VAR                                                 $138
        158        DO_ICALL                                         $139    
        159        CONCAT                                           ~140    ~137, $139
        160        CONCAT                                           ~141    ~140, '%27%2C+'
   57   161        CONCAT                                           ~142    ~141, !7
        162        CONCAT                                           ~143    ~142, '%2C+'
   58   163        CONCAT                                           ~144    ~143, !14
        164        CONCAT                                           ~145    ~144, '%2C+'
   59   165        CONCAT                                           ~146    ~145, '%27'
        166        INIT_FCALL                                               'trim'
        167        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
        168        SEND_VAR_EX                                              !21
        169        DO_FCALL                                      0  $147    
        170        SEND_VAR                                                 $147
        171        DO_ICALL                                         $148    
        172        CONCAT                                           ~149    ~146, $148
        173        CONCAT                                           ~150    ~149, '%27%2C+'
   60   174        CONCAT                                           ~151    ~150, !10
        175        CONCAT                                           ~152    ~151, '%2C+'
   61   176        CONCAT                                           ~153    ~152, !16
   62   177        CONCAT                                           ~154    ~153, '%29'
   52   178        ASSIGN                                                   !3, ~154
   63   179        INIT_FCALL_BY_NAME                                       'mysql_query'
        180        SEND_VAR_EX                                              !3
        181        DO_FCALL                                      0  $156    
        182        ASSIGN                                                   !28, $156
   64   183        BOOL_NOT                                         ~158    !28
        184      > JMPZ                                                     ~158, ->191
   65   185    >   INIT_FCALL_BY_NAME                                       'mysql_error'
        186        DO_FCALL                                      0  $159    
        187        NOP                                                      
        188        FAST_CONCAT                                      ~160    '%3Cbr%3E', !3
        189        CONCAT                                           ~161    $159, ~160
        190        ECHO                                                     ~161
   67   191    >   ASSIGN                                                   !6, !14
   20   192      > JMP                                                      ->31
        193    >   FE_FREE                                                  $50
        194      > JMP                                                      ->199
   74   195  E > > CATCH                                       last         'Exception'
   75   196    >   INIT_METHOD_CALL                                         !29, 'getMessage'
        197        DO_FCALL                                      0  $163    
        198        ECHO                                                     $163
   78   199    >   ECHO                                                     'Categories+added+to+database'
   80   200        DECLARE_CLASS                                            'category'
  135   201      > RETURN                                                   1

Class Category:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gg4li
function name:  __construct
number of ops:  16
compiled vars:  !0 = $cat
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   88     0  E >   RECV                                             !0      
   89     1        FETCH_DIM_R                                      ~2      !0, 'id'
          2        ASSIGN_OBJ                                               'id'
          3        OP_DATA                                                  ~2
   90     4        FETCH_DIM_R                                      ~4      !0, 'level'
          5        ASSIGN_OBJ                                               'lvl'
          6        OP_DATA                                                  ~4
   91     7        FETCH_DIM_R                                      ~6      !0, 'label'
          8        ASSIGN_OBJ                                               'label'
          9        OP_DATA                                                  ~6
   92    10        FETCH_DIM_R                                      ~8      !0, 'activated_id'
         11        ASSIGN_OBJ                                               'activated_id'
         12        OP_DATA                                                  ~8
   93    13        ASSIGN_OBJ                                               'children'
         14        OP_DATA                                                  <array>
   94    15      > RETURN                                                   null

End of function __construct

Function get_id:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gg4li
function name:  get_id
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   97     0  E >   FETCH_OBJ_R                                      ~0      'id'
          1      > RETURN                                                   ~0
   98     2*     > RETURN                                                   null

End of function get_id

Function get_level:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gg4li
function name:  get_level
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  100     0  E >   FETCH_OBJ_R                                      ~0      'lvl'
          1      > RETURN                                                   ~0
  101     2*     > RETURN                                                   null

End of function get_level

Function get_label:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gg4li
function name:  get_label
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  103     0  E >   FETCH_OBJ_R                                      ~0      'label'
          1      > RETURN                                                   ~0
  104     2*     > RETURN                                                   null

End of function get_label

Function get_activated_id:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gg4li
function name:  get_activated_id
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  106     0  E >   FETCH_OBJ_R                                      ~0      'activated_id'
          1      > RETURN                                                   ~0
  107     2*     > RETURN                                                   null

End of function get_activated_id

Function get_children:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gg4li
function name:  get_children
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  109     0  E >   FETCH_OBJ_R                                      ~0      'children'
          1      > RETURN                                                   ~0
  110     2*     > RETURN                                                   null

End of function get_children

Function set_id:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gg4li
function name:  set_id
number of ops:  4
compiled vars:  !0 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  111     0  E >   RECV                                             !0      
  112     1        ASSIGN_OBJ                                               'id'
          2        OP_DATA                                                  !0
  113     3      > RETURN                                                   null

End of function set_id

Function set_level:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gg4li
function name:  set_level
number of ops:  4
compiled vars:  !0 = $lvl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  114     0  E >   RECV                                             !0      
  115     1        ASSIGN_OBJ                                               'lvl'
          2        OP_DATA                                                  !0
  116     3      > RETURN                                                   null

End of function set_level

Function set_label:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gg4li
function name:  set_label
number of ops:  4
compiled vars:  !0 = $label
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  117     0  E >   RECV                                             !0      
  118     1        ASSIGN_OBJ                                               'label'
          2        OP_DATA                                                  !0
  119     3      > RETURN                                                   null

End of function set_label

Function set_children:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gg4li
function name:  set_children
number of ops:  4
compiled vars:  !0 = $children
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  120     0  E >   RECV                                             !0      
  121     1        ASSIGN_OBJ                                               'children'
          2        OP_DATA                                                  !0
  122     3      > RETURN                                                   null

End of function set_children

Function add_child:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gg4li
function name:  add_child
number of ops:  5
compiled vars:  !0 = $child
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  123     0  E >   RECV                                             !0      
  124     1        FETCH_OBJ_W                                      $1      'children'
          2        ASSIGN_DIM                                               $1
          3        OP_DATA                                                  !0
  125     4      > RETURN                                                   null

End of function add_child

Function get_child:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gg4li
function name:  get_child
number of ops:  5
compiled vars:  !0 = $index
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  126     0  E >   RECV                                             !0      
  127     1        FETCH_OBJ_R                                      ~1      'children'
          2        FETCH_DIM_R                                      ~2      ~1, !0
          3      > RETURN                                                   ~2
  128     4*     > RETURN                                                   null

End of function get_child

Function remove_child:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gg4li
function name:  remove_child
number of ops:  6
compiled vars:  !0 = $child, !1 = $index
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  129     0  E >   RECV                                             !0      
          1        RECV                                             !1      
  130     2        FETCH_OBJ_W                                      $2      'children'
          3        ASSIGN_DIM                                               $2
          4        OP_DATA                                                  null
  131     5      > RETURN                                                   null

End of function remove_child

Function __tostring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gg4li
function name:  __toString
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  133     0  E >   INIT_METHOD_CALL                                         'get_level'
          1        DO_FCALL                                      0  $0      
          2        CONCAT                                           ~1      'Category+Lvl%3A', $0
          3        CONCAT                                           ~2      ~1, '+-+'
          4        INIT_METHOD_CALL                                         'get_id'
          5        DO_FCALL                                      0  $3      
          6        CONCAT                                           ~4      ~2, $3
          7        CONCAT                                           ~5      ~4, '%3A'
          8        INIT_METHOD_CALL                                         'get_label'
          9        DO_FCALL                                      0  $6      
         10        CONCAT                                           ~7      ~5, $6
         11        VERIFY_RETURN_TYPE                                       ~7
         12      > RETURN                                                   ~7
  134    13*       VERIFY_RETURN_TYPE                                       
         14*     > RETURN                                                   null

End of function __tostring

End of class Category.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.93 ms | 1424 KiB | 21 Q