3v4l.org

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

Class Category:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5qu0C
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/5qu0C
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/5qu0C
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/5qu0C
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/5qu0C
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/5qu0C
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/5qu0C
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/5qu0C
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/5qu0C
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/5qu0C
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/5qu0C
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/5qu0C
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/5qu0C
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/5qu0C
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:
182.51 ms | 1424 KiB | 21 Q