3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /* Desc: Imports new Categories into database bet3000 (expected to run once daily) */ ini_set('display_errors', 1); error_reporting(E_ALL & ~E_NOTICE); $possible_languages=array('de','en','tr','es','el','ru','fr'); $wanted_languages=array('de'); /* DB CONNECT */ $host = "localhost"; // Host name $username_mysql = "d01ff632"; // Mysql username $password_mysql = "achimundeva"; // Mysql password $db_name = "d01ff632"; // Database name /** Connect to server and select databse. * */ @mysql_connect("$host_mysql", "$username_mysql", "$password_mysql") or die("Cannot connect to database. Please edit the file settings.php"); mysql_select_db("$db_name") or die("Cannot select temp database."); mysql_query("SET NAMES 'utf8'"); /* 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 = 47) Position 1 = 24, Position 2 = 26
Branch analysis from position: 24
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 26
2 jumps found. (Code = 47) Position 1 = 31, Position 2 = 33
Branch analysis from position: 31
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 33
2 jumps found. (Code = 77) Position 1 = 37, Position 2 = 239
Branch analysis from position: 37
2 jumps found. (Code = 78) Position 1 = 38, Position 2 = 239
Branch analysis from position: 38
2 jumps found. (Code = 43) Position 1 = 57, Position 2 = 60
Branch analysis from position: 57
2 jumps found. (Code = 77) Position 1 = 69, Position 2 = 232
Branch analysis from position: 69
2 jumps found. (Code = 78) Position 1 = 70, Position 2 = 232
Branch analysis from position: 70
2 jumps found. (Code = 43) Position 1 = 99, Position 2 = 104
Branch analysis from position: 99
2 jumps found. (Code = 43) Position 1 = 136, Position 2 = 175
Branch analysis from position: 136
1 jumps found. (Code = 42) Position 1 = 230
Branch analysis from position: 230
1 jumps found. (Code = 42) Position 1 = 69
Branch analysis from position: 69
Branch analysis from position: 175
2 jumps found. (Code = 43) Position 1 = 224, Position 2 = 230
Branch analysis from position: 224
1 jumps found. (Code = 42) Position 1 = 69
Branch analysis from position: 69
Branch analysis from position: 230
Branch analysis from position: 104
Branch analysis from position: 232
1 jumps found. (Code = 42) Position 1 = 238
Branch analysis from position: 238
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
Branch analysis from position: 232
Branch analysis from position: 60
Branch analysis from position: 239
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 239
Found catch point at position: 234
Branch analysis from position: 234
2 jumps found. (Code = 107) Position 1 = 235, Position 2 = -2
Branch analysis from position: 235
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
filename:       /in/03B2v
function name:  (null)
number of ops:  243
compiled vars:  !0 = $possible_languages, !1 = $wanted_languages, !2 = $host, !3 = $username_mysql, !4 = $password_mysql, !5 = $db_name, !6 = $host_mysql, !7 = $lang, !8 = $url, !9 = $data, !10 = $query, !11 = $debug, !12 = $cat_lvl_ids, !13 = $prev_lvl, !14 = $parent_id, !15 = $index, !16 = $flag, !17 = $sortid, !18 = $value, !19 = $key, !20 = $cat, !21 = $lvl, !22 = $id, !23 = $active, !24 = $parent_lbl, !25 = $path, !26 = $explode, !27 = $detail, !28 = $sport, !29 = $qcheck, !30 = $rcheck, !31 = $ocheck, !32 = $sqladd, !33 = $querynew, !34 = $sqlheaderadd, !35 = $resultInsert, !36 = $e
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   7     0  E >   INIT_FCALL                                               'ini_set'
         1        SEND_VAL                                                 'display_errors'
         2        SEND_VAL                                                 1
         3        DO_ICALL                                                 
   8     4        INIT_FCALL                                               'error_reporting'
         5        SEND_VAL                                                 32759
         6        DO_ICALL                                                 
  10     7        ASSIGN                                                   !0, <array>
  11     8        ASSIGN                                                   !1, <array>
  14     9        ASSIGN                                                   !2, 'localhost'
  15    10        ASSIGN                                                   !3, 'd01ff632'
  16    11        ASSIGN                                                   !4, 'achimundeva'
  17    12        ASSIGN                                                   !5, 'd01ff632'
  19    13        BEGIN_SILENCE                                    ~45     
        14        INIT_FCALL_BY_NAME                                       'mysql_connect'
        15        CAST                                          6  ~46     !6
        16        SEND_VAL_EX                                              ~46
        17        CAST                                          6  ~47     !3
        18        SEND_VAL_EX                                              ~47
        19        CAST                                          6  ~48     !4
        20        SEND_VAL_EX                                              ~48
        21        DO_FCALL                                      0  $49     
        22        END_SILENCE                                              ~45
        23      > JMPNZ_EX                                         ~50     $49, ->26
        24    > > EXIT                                                     'Cannot+connect+to+database.+Please+edit+the+file+settings.php'
        25*       BOOL                                             ~50     <true>
  20    26    >   INIT_FCALL_BY_NAME                                       'mysql_select_db'
        27        CAST                                          6  ~51     !5
        28        SEND_VAL_EX                                              ~51
        29        DO_FCALL                                      0  $52     
        30      > JMPNZ_EX                                         ~53     $52, ->33
        31    > > EXIT                                                     'Cannot+select+temp+database.'
        32*       BOOL                                             ~53     <true>
  21    33    >   INIT_FCALL_BY_NAME                                       'mysql_query'
        34        SEND_VAL_EX                                              'SET+NAMES+%27utf8%27'
        35        DO_FCALL                                      0          
  24    36      > FE_RESET_R                                       $55     !1, ->239
        37    > > FE_FETCH_R                                               $55, !7, ->239
  25    38    >   ROPE_INIT                                     3  ~57     'import+categories+for+lang%3D'
        39        ROPE_ADD                                      1  ~57     ~57, !7
        40        ROPE_END                                      2  ~56     ~57, '%0A'
        41        ECHO                                                     ~56
  26    42        CONCAT                                           ~59     'https%3A%2F%2Fwww.bet3000.com%2F', !7
        43        CONCAT                                           ~60     ~59, '%2Fjsonrpc%2F%3Fjsonrpc%3D2.0%26id%3D0%26method%3Dsportsbook.get_active_categories'
        44        ASSIGN                                                   !8, ~60
  28    45        INIT_FCALL                                               'file_get_contents'
        46        SEND_VAR                                                 !8
        47        DO_ICALL                                         $62     
        48        ASSIGN                                                   !9, $62
  29    49        INIT_FCALL                                               'json_decode'
        50        SEND_VAR                                                 !9
        51        SEND_VAL                                                 <true>
        52        DO_ICALL                                         $64     
        53        ASSIGN                                                   !9, $64
  31    54        ASSIGN                                                   !10, 'UPDATE+home_categories+SET+active%3D0'
  32    55        BOOL_NOT                                         ~67     !11
        56      > JMPZ                                                     ~67, ->60
        57    >   INIT_FCALL_BY_NAME                                       'mysql_query'
        58        SEND_VAR_EX                                              !10
        59        DO_FCALL                                      0          
  34    60    >   ASSIGN_DIM                                               !12, 0
        61        OP_DATA                                                  <array>
  35    62        ASSIGN                                                   !13, 0
  36    63        ASSIGN                                                   !14, 0
  37    64        ASSIGN                                                   !15, 0
  38    65        ASSIGN                                                   !16, <false>
  39    66        ASSIGN                                                   !17, 0
  40    67        FETCH_DIM_R                                      $75     !9, 'categories'
        68      > FE_RESET_R                                       $76     $75, ->232
        69    > > FE_FETCH_R                                       ~77     $76, !18, ->232
        70    >   ASSIGN                                                   !19, ~77
  41    71        POST_INC                                         ~79     !17
        72        FREE                                                     ~79
  42    73        NEW                                              $80     :35
        74        SEND_VAR_EX                                              !18
        75        DO_FCALL                                      0          
        76        ASSIGN                                                   !20, $80
  43    77        INIT_METHOD_CALL                                         !20, 'get_level'
        78        DO_FCALL                                      0  $83     
        79        ASSIGN                                                   !21, $83
  44    80        INIT_METHOD_CALL                                         !20, 'get_id'
        81        DO_FCALL                                      0  $85     
        82        ASSIGN                                                   !22, $85
  45    83        INIT_METHOD_CALL                                         !20, 'get_activated_id'
        84        DO_FCALL                                      0  $87     
        85        ASSIGN                                                   !23, $87
  46    86        FETCH_DIM_W                                      $89     !12, !21
        87        ASSIGN_DIM                                               $89, 'id'
        88        OP_DATA                                                  !22
  47    89        SUB                                              ~91     !21, 1
        90        FETCH_DIM_R                                      $92     !12, ~91
        91        FETCH_DIM_R                                      $93     $92, 'id'
        92        ASSIGN                                                   !14, $93
  48    93        ASSIGN                                                   !24, ''
  49    94        SUB                                              ~96     !21, 1
        95        FETCH_DIM_IS                                     $97     !12, ~96
        96        ISSET_ISEMPTY_DIM_OBJ                       16777216  ~98     $97, 'label'
        97        BOOL_NOT                                         ~99     ~98
        98      > JMPZ                                                     ~99, ->104
  50    99    >   SUB                                              ~100    !21, 1
       100        FETCH_DIM_R                                      $101    !12, ~100
       101        FETCH_DIM_R                                      $102    $101, 'label'
       102        CONCAT                                           ~103    $102, '+%2F+'
       103        ASSIGN                                                   !24, ~103
  52   104    >   INIT_METHOD_CALL                                         !20, 'get_label'
       105        DO_FCALL                                      0  $105    
       106        CONCAT                                           ~106    !24, $105
       107        ASSIGN                                                   !25, ~106
  53   108        FETCH_DIM_W                                      $108    !12, !21
       109        ASSIGN_DIM                                               $108, 'label'
       110        OP_DATA                                                  !25
  54   111        INIT_FCALL                                               'explode'
       112        SEND_VAL                                                 '+%2F+'
       113        SEND_VAR                                                 !25
       114        DO_ICALL                                         $110    
       115        ASSIGN                                                   !26, $110
  55   116        COUNT                                            ~112    !26
       117        SUB                                              ~113    ~112, 1
       118        FETCH_DIM_R                                      $114    !26, ~113
       119        ASSIGN                                                   !27, $114
  56   120        FETCH_DIM_R                                      $116    !26, 0
       121        ASSIGN                                                   !28, $116
  57   122        CONCAT                                           ~118    'SELECT+%2A+FROM+%60home_categories%60+WHERE+cid%3D', !22
       123        CONCAT                                           ~119    ~118, '+AND+lang%3D%27'
       124        CONCAT                                           ~120    ~119, !7
       125        CONCAT                                           ~121    ~120, '%27'
       126        ASSIGN                                                   !29, ~121
  58   127        INIT_FCALL_BY_NAME                                       'mysql_query'
       128        SEND_VAR_EX                                              !29
       129        DO_FCALL                                      0  $123    
       130        ASSIGN                                                   !30, $123
  59   131        INIT_FCALL_BY_NAME                                       'mysql_num_rows'
       132        SEND_VAR_EX                                              !30
       133        DO_FCALL                                      0  $125    
       134        IS_SMALLER                                       ~126    0, $125
       135      > JMPZ                                                     ~126, ->175
  60   136    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_object'
       137        SEND_VAR_EX                                              !30
       138        DO_FCALL                                      0  $127    
       139        ASSIGN                                                   !31, $127
  61   140        ASSIGN                                                   !32, ''
  62   141        INIT_FCALL                                               'trim'
       142        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
       143        SEND_VAR_EX                                              !25
       144        DO_FCALL                                      0  $130    
       145        SEND_VAR                                                 $130
       146        DO_ICALL                                         $131    
       147        CONCAT                                           ~132    '%2Cpath%3D%27', $131
       148        CONCAT                                           ~133    ~132, '%27%2C+detail%3D%27'
       149        INIT_FCALL                                               'trim'
       150        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
       151        SEND_VAR_EX                                              !27
       152        DO_FCALL                                      0  $134    
       153        SEND_VAR                                                 $134
       154        DO_ICALL                                         $135    
       155        CONCAT                                           ~136    ~133, $135
       156        CONCAT                                           ~137    ~136, '%27'
       157        ASSIGN_CONCAT                                 0          !32, ~137
  64   158        CONCAT                                           ~139    'UPDATE+home_categories+SET+active%3D', !23
       159        CONCAT                                           ~140    ~139, '%2Csortid%3D'
       160        CONCAT                                           ~141    ~140, !17
       161        CONCAT                                           ~142    ~141, !32
       162        CONCAT                                           ~143    ~142, '+WHERE+cid%3D'
       163        CONCAT                                           ~144    ~143, !22
       164        CONCAT                                           ~145    ~144, '+AND+lang%3D%27'
       165        CONCAT                                           ~146    ~145, !7
       166        CONCAT                                           ~147    ~146, '%27'
       167        ASSIGN                                                   !33, ~147
  65   168        INIT_FCALL_BY_NAME                                       'mysql_query'
       169        SEND_VAR_EX                                              !33
       170        DO_FCALL                                      0          
  66   171        INIT_FCALL_BY_NAME                                       'mysql_error'
       172        DO_FCALL                                      0  $150    
       173        ECHO                                                     $150
       174      > JMP                                                      ->230
  69   175    >   ASSIGN                                                   !34, ''
  70   176        ASSIGN                                                   !32, ''
  73   177        CONCAT                                           ~153    'INSERT+IGNORE+INTO+%60home_categories%60+%28cid%2Clang%2Cdetail%2Cpath%2Ctopcatid%2Cstufe%2Csport%2Csortid%2Cactive%29+VALUES+%28', !22
       178        CONCAT                                           ~154    ~153, '%2C+'
  74   179        CONCAT                                           ~155    ~154, '%27'
       180        CONCAT                                           ~156    ~155, !7
       181        CONCAT                                           ~157    ~156, '%27%2C+'
  75   182        CONCAT                                           ~158    ~157, '%27'
       183        INIT_FCALL                                               'trim'
       184        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
       185        SEND_VAR_EX                                              !27
       186        DO_FCALL                                      0  $159    
       187        SEND_VAR                                                 $159
       188        DO_ICALL                                         $160    
       189        CONCAT                                           ~161    ~158, $160
       190        CONCAT                                           ~162    ~161, '%27%2C+'
  76   191        CONCAT                                           ~163    ~162, '%27'
       192        INIT_FCALL                                               'trim'
       193        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
       194        SEND_VAR_EX                                              !25
       195        DO_FCALL                                      0  $164    
       196        SEND_VAR                                                 $164
       197        DO_ICALL                                         $165    
       198        CONCAT                                           ~166    ~163, $165
       199        CONCAT                                           ~167    ~166, '%27%2C+'
  77   200        CONCAT                                           ~168    ~167, !14
       201        CONCAT                                           ~169    ~168, '%2C+'
  78   202        CONCAT                                           ~170    ~169, !21
       203        CONCAT                                           ~171    ~170, '%2C+'
  79   204        CONCAT                                           ~172    ~171, '%27'
       205        INIT_FCALL                                               'trim'
       206        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
       207        SEND_VAR_EX                                              !28
       208        DO_FCALL                                      0  $173    
       209        SEND_VAR                                                 $173
       210        DO_ICALL                                         $174    
       211        CONCAT                                           ~175    ~172, $174
       212        CONCAT                                           ~176    ~175, '%27%2C+'
  80   213        CONCAT                                           ~177    ~176, !17
       214        CONCAT                                           ~178    ~177, '%2C+'
  81   215        CONCAT                                           ~179    ~178, !23
  82   216        CONCAT                                           ~180    ~179, '%29'
       217        ASSIGN                                                   !10, ~180
  83   218        INIT_FCALL_BY_NAME                                       'mysql_query'
       219        SEND_VAR_EX                                              !10
       220        DO_FCALL                                      0  $182    
       221        ASSIGN                                                   !35, $182
  84   222        BOOL_NOT                                         ~184    !35
       223      > JMPZ                                                     ~184, ->230
  85   224    >   INIT_FCALL_BY_NAME                                       'mysql_error'
       225        DO_FCALL                                      0  $185    
       226        NOP                                                      
       227        FAST_CONCAT                                      ~186    '%3Cbr%3E', !10
       228        CONCAT                                           ~187    $185, ~186
       229        ECHO                                                     ~187
  87   230    >   ASSIGN                                                   !13, !21
       231      > JMP                                                      ->69
       232    >   FE_FREE                                                  $76
       233      > JMP                                                      ->238
  94   234  E > > CATCH                                                    'Exception', !36
  95   235    >   INIT_METHOD_CALL                                         !36, 'getMessage'
       236        DO_FCALL                                      0  $189    
       237        ECHO                                                     $189
       238    > > JMP                                                      ->37
       239    >   FE_FREE                                                  $55
  98   240        ECHO                                                     'Categories+added+to+database'
 100   241        NOP                                                      
 155   242      > RETURN                                                   1

Class Category:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/03B2v
function name:  __construct
number of ops:  16
compiled vars:  !0 = $cat
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
 108     0  E >   RECV                                             !0      
 109     1        FETCH_DIM_R                                      $2      !0, 'id'
         2        ASSIGN_OBJ                                               'id'
         3        OP_DATA                                                  $2
 110     4        FETCH_DIM_R                                      $4      !0, 'level'
         5        ASSIGN_OBJ                                               'lvl'
         6        OP_DATA                                                  $4
 111     7        FETCH_DIM_R                                      $6      !0, 'label'
         8        ASSIGN_OBJ                                               'label'
         9        OP_DATA                                                  $6
 112    10        FETCH_DIM_R                                      $8      !0, 'activated_id'
        11        ASSIGN_OBJ                                               'activated_id'
        12        OP_DATA                                                  $8
 113    13        ASSIGN_OBJ                                               'children'
        14        OP_DATA                                                  <array>
 114    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/03B2v
function name:  get_id
number of ops:  3
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
 117     0  E >   FETCH_OBJ_R                                      $0      'id'
         1      > RETURN                                                   $0
 118     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/03B2v
function name:  get_level
number of ops:  3
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
 120     0  E >   FETCH_OBJ_R                                      $0      'lvl'
         1      > RETURN                                                   $0
 121     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/03B2v
function name:  get_label
number of ops:  3
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
 123     0  E >   FETCH_OBJ_R                                      $0      'label'
         1      > RETURN                                                   $0
 124     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/03B2v
function name:  get_activated_id
number of ops:  3
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
 126     0  E >   FETCH_OBJ_R                                      $0      'activated_id'
         1      > RETURN                                                   $0
 127     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/03B2v
function name:  get_children
number of ops:  3
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
 129     0  E >   FETCH_OBJ_R                                      $0      'children'
         1      > RETURN                                                   $0
 130     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/03B2v
function name:  set_id
number of ops:  4
compiled vars:  !0 = $id
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
 131     0  E >   RECV                                             !0      
 132     1        ASSIGN_OBJ                                               'id'
         2        OP_DATA                                                  !0
 133     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/03B2v
function name:  set_level
number of ops:  4
compiled vars:  !0 = $lvl
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
 134     0  E >   RECV                                             !0      
 135     1        ASSIGN_OBJ                                               'lvl'
         2        OP_DATA                                                  !0
 136     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/03B2v
function name:  set_label
number of ops:  4
compiled vars:  !0 = $label
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
 137     0  E >   RECV                                             !0      
 138     1        ASSIGN_OBJ                                               'label'
         2        OP_DATA                                                  !0
 139     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/03B2v
function name:  set_children
number of ops:  4
compiled vars:  !0 = $children
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
 140     0  E >   RECV                                             !0      
 141     1        ASSIGN_OBJ                                               'children'
         2        OP_DATA                                                  !0
 142     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/03B2v
function name:  add_child
number of ops:  5
compiled vars:  !0 = $child
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
 143     0  E >   RECV                                             !0      
 144     1        FETCH_OBJ_W                                      $1      'children'
         2        ASSIGN_DIM                                               $1
         3        OP_DATA                                                  !0
 145     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/03B2v
function name:  get_child
number of ops:  5
compiled vars:  !0 = $index
line     #* E I O op              

Generated using Vulcan Logic Dumper, using php 7.3.0