3v4l.org

run code in 300+ PHP versions simultaneously
<?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 = 238
Branch analysis from position: 37
2 jumps found. (Code = 78) Position 1 = 38, Position 2 = 238
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 = 231
Branch analysis from position: 69
2 jumps found. (Code = 78) Position 1 = 70, Position 2 = 231
Branch analysis from position: 70
2 jumps found. (Code = 43) Position 1 = 98, Position 2 = 103
Branch analysis from position: 98
2 jumps found. (Code = 43) Position 1 = 135, Position 2 = 174
Branch analysis from position: 135
1 jumps found. (Code = 42) Position 1 = 229
Branch analysis from position: 229
1 jumps found. (Code = 42) Position 1 = 69
Branch analysis from position: 69
Branch analysis from position: 174
2 jumps found. (Code = 43) Position 1 = 223, Position 2 = 229
Branch analysis from position: 223
1 jumps found. (Code = 42) Position 1 = 69
Branch analysis from position: 69
Branch analysis from position: 229
Branch analysis from position: 103
Branch analysis from position: 231
1 jumps found. (Code = 42) Position 1 = 237
Branch analysis from position: 237
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
Branch analysis from position: 231
Branch analysis from position: 60
Branch analysis from position: 238
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 238
Found catch point at position: 233
Branch analysis from position: 233
2 jumps found. (Code = 107) Position 1 = 234, Position 2 = -2
Branch analysis from position: 234
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
filename:       /in/03B2v
function name:  (null)
number of ops:  242
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, ->238
         37    > > FE_FETCH_R                                               $55, !7, ->238
   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, ->231
         69    > > FE_FETCH_R                                       ~77     $76, !18, ->231
         70    >   ASSIGN                                                   !19, ~77
   41    71        PRE_INC                                                  !17
   42    72        NEW                                              $80     'Category'
         73        SEND_VAR_EX                                              !18
         74        DO_FCALL                                      0          
         75        ASSIGN                                                   !20, $80
   43    76        INIT_METHOD_CALL                                         !20, 'get_level'
         77        DO_FCALL                                      0  $83     
         78        ASSIGN                                                   !21, $83
   44    79        INIT_METHOD_CALL                                         !20, 'get_id'
         80        DO_FCALL                                      0  $85     
         81        ASSIGN                                                   !22, $85
   45    82        INIT_METHOD_CALL                                         !20, 'get_activated_id'
         83        DO_FCALL                                      0  $87     
         84        ASSIGN                                                   !23, $87
   46    85        FETCH_DIM_W                                      $89     !12, !21
         86        ASSIGN_DIM                                               $89, 'id'
         87        OP_DATA                                                  !22
   47    88        SUB                                              ~91     !21, 1
         89        FETCH_DIM_R                                      ~92     !12, ~91
         90        FETCH_DIM_R                                      ~93     ~92, 'id'
         91        ASSIGN                                                   !14, ~93
   48    92        ASSIGN                                                   !24, ''
   49    93        SUB                                              ~96     !21, 1
         94        FETCH_DIM_IS                                     ~97     !12, ~96
         95        ISSET_ISEMPTY_DIM_OBJ                         1  ~98     ~97, 'label'
         96        BOOL_NOT                                         ~99     ~98
         97      > JMPZ                                                     ~99, ->103
   50    98    >   SUB                                              ~100    !21, 1
         99        FETCH_DIM_R                                      ~101    !12, ~100
        100        FETCH_DIM_R                                      ~102    ~101, 'label'
        101        CONCAT                                           ~103    ~102, '+%2F+'
        102        ASSIGN                                                   !24, ~103
   52   103    >   INIT_METHOD_CALL                                         !20, 'get_label'
        104        DO_FCALL                                      0  $105    
        105        CONCAT                                           ~106    !24, $105
        106        ASSIGN                                                   !25, ~106
   53   107        FETCH_DIM_W                                      $108    !12, !21
        108        ASSIGN_DIM                                               $108, 'label'
        109        OP_DATA                                                  !25
   54   110        INIT_FCALL                                               'explode'
        111        SEND_VAL                                                 '+%2F+'
        112        SEND_VAR                                                 !25
        113        DO_ICALL                                         $110    
        114        ASSIGN                                                   !26, $110
   55   115        COUNT                                            ~112    !26
        116        SUB                                              ~113    ~112, 1
        117        FETCH_DIM_R                                      ~114    !26, ~113
        118        ASSIGN                                                   !27, ~114
   56   119        FETCH_DIM_R                                      ~116    !26, 0
        120        ASSIGN                                                   !28, ~116
   57   121        CONCAT                                           ~118    'SELECT+%2A+FROM+%60home_categories%60+WHERE+cid%3D', !22
        122        CONCAT                                           ~119    ~118, '+AND+lang%3D%27'
        123        CONCAT                                           ~120    ~119, !7
        124        CONCAT                                           ~121    ~120, '%27'
        125        ASSIGN                                                   !29, ~121
   58   126        INIT_FCALL_BY_NAME                                       'mysql_query'
        127        SEND_VAR_EX                                              !29
        128        DO_FCALL                                      0  $123    
        129        ASSIGN                                                   !30, $123
   59   130        INIT_FCALL_BY_NAME                                       'mysql_num_rows'
        131        SEND_VAR_EX                                              !30
        132        DO_FCALL                                      0  $125    
        133        IS_SMALLER                                               0, $125
        134      > JMPZ                                                     ~126, ->174
   60   135    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_object'
        136        SEND_VAR_EX                                              !30
        137        DO_FCALL                                      0  $127    
        138        ASSIGN                                                   !31, $127
   61   139        ASSIGN                                                   !32, ''
   62   140        INIT_FCALL                                               'trim'
        141        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
        142        SEND_VAR_EX                                              !25
        143        DO_FCALL                                      0  $130    
        144        SEND_VAR                                                 $130
        145        DO_ICALL                                         $131    
        146        CONCAT                                           ~132    '%2Cpath%3D%27', $131
        147        CONCAT                                           ~133    ~132, '%27%2C+detail%3D%27'
        148        INIT_FCALL                                               'trim'
        149        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
        150        SEND_VAR_EX                                              !27
        151        DO_FCALL                                      0  $134    
        152        SEND_VAR                                                 $134
        153        DO_ICALL                                         $135    
        154        CONCAT                                           ~136    ~133, $135
        155        CONCAT                                           ~137    ~136, '%27'
        156        ASSIGN_OP                                     8          !32, ~137
   64   157        CONCAT                                           ~139    'UPDATE+home_categories+SET+active%3D', !23
        158        CONCAT                                           ~140    ~139, '%2Csortid%3D'
        159        CONCAT                                           ~141    ~140, !17
        160        CONCAT                                           ~142    ~141, !32
        161        CONCAT                                           ~143    ~142, '+WHERE+cid%3D'
        162        CONCAT                                           ~144    ~143, !22
        163        CONCAT                                           ~145    ~144, '+AND+lang%3D%27'
        164        CONCAT                                           ~146    ~145, !7
        165        CONCAT                                           ~147    ~146, '%27'
        166        ASSIGN                                                   !33, ~147
   65   167        INIT_FCALL_BY_NAME                                       'mysql_query'
        168        SEND_VAR_EX                                              !33
        169        DO_FCALL                                      0          
   66   170        INIT_FCALL_BY_NAME                                       'mysql_error'
        171        DO_FCALL                                      0  $150    
        172        ECHO                                                     $150
        173      > JMP                                                      ->229
   69   174    >   ASSIGN                                                   !34, ''
   70   175        ASSIGN                                                   !32, ''
   73   176        CONCAT                                           ~153    'INSERT+IGNORE+INTO+%60home_categories%60+%28cid%2Clang%2Cdetail%2Cpath%2Ctopcatid%2Cstufe%2Csport%2Csortid%2Cactive%29+VALUES+%28', !22
        177        CONCAT                                           ~154    ~153, '%2C+'
   74   178        CONCAT                                           ~155    ~154, '%27'
        179        CONCAT                                           ~156    ~155, !7
        180        CONCAT                                           ~157    ~156, '%27%2C+'
   75   181        CONCAT                                           ~158    ~157, '%27'
        182        INIT_FCALL                                               'trim'
        183        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
        184        SEND_VAR_EX                                              !27
        185        DO_FCALL                                      0  $159    
        186        SEND_VAR                                                 $159
        187        DO_ICALL                                         $160    
        188        CONCAT                                           ~161    ~158, $160
        189        CONCAT                                           ~162    ~161, '%27%2C+'
   76   190        CONCAT                                           ~163    ~162, '%27'
        191        INIT_FCALL                                               'trim'
        192        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
        193        SEND_VAR_EX                                              !25
        194        DO_FCALL                                      0  $164    
        195        SEND_VAR                                                 $164
        196        DO_ICALL                                         $165    
        197        CONCAT                                           ~166    ~163, $165
        198        CONCAT                                           ~167    ~166, '%27%2C+'
   77   199        CONCAT                                           ~168    ~167, !14
        200        CONCAT                                           ~169    ~168, '%2C+'
   78   201        CONCAT                                           ~170    ~169, !21
        202        CONCAT                                           ~171    ~170, '%2C+'
   79   203        CONCAT                                           ~172    ~171, '%27'
        204        INIT_FCALL                                               'trim'
        205        INIT_FCALL_BY_NAME                                       'mysql_real_escape_string'
        206        SEND_VAR_EX                                              !28
        207        DO_FCALL                                      0  $173    
        208        SEND_VAR                                                 $173
        209        DO_ICALL                                         $174    
        210        CONCAT                                           ~175    ~172, $174
        211        CONCAT                                           ~176    ~175, '%27%2C+'
   80   212        CONCAT                                           ~177    ~176, !17
        213        CONCAT                                           ~178    ~177, '%2C+'
   81   214        CONCAT                                           ~179    ~178, !23
   82   215        CONCAT                                           ~180    ~179, '%29'
   72   216        ASSIGN                                                   !10, ~180
   83   217        INIT_FCALL_BY_NAME                                       'mysql_query'
        218        SEND_VAR_EX                                              !10
        219        DO_FCALL                                      0  $182    
        220        ASSIGN                                                   !35, $182
   84   221        BOOL_NOT                                         ~184    !35
        222      > JMPZ                                                     ~184, ->229
   85   223    >   INIT_FCALL_BY_NAME                                       'mysql_error'
        224        DO_FCALL                                      0  $185    
        225        NOP                                                      
        226        FAST_CONCAT                                      ~186    '%3Cbr%3E', !10
        227        CONCAT                                           ~187    $185, ~186
        228        ECHO                                                     ~187
   87   229    >   ASSIGN                                                   !13, !21
   40   230      > JMP                                                      ->69
        231    >   FE_FREE                                                  $76
        232      > JMP                                                      ->237
   94   233  E > > CATCH                                       last         'Exception'
   95   234    >   INIT_METHOD_CALL                                         !36, 'getMessage'
        235        DO_FCALL                                      0  $189    
        236        ECHO                                                     $189
   24   237    > > JMP                                                      ->37
        238    >   FE_FREE                                                  $55
   98   239        ECHO                                                     'Categories+added+to+database'
  100   240        DECLARE_CLASS                                            'category'
  155   241      > 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 ge

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.11 ms | 1428 KiB | 25 Q