3v4l.org

run code in 300+ PHP versions simultaneously
<?php class content { public function get_header() { $returned = array(); $confdir = ($_SERVER['DOCUMENT_ROOT']. '\site\config.xml'); $xml= simplexml_load_file($confdir); $title = ($xml->site->title); $hmenu = ($xml->content->nav); $ntitle = (string)$title; $nhmenu = (string)$hmenu; $returned[] = "<div class = 'header'>"; //header start $returned[] = '<div class = "title"><h1>'. $ntitle. '</h1></div>'; $returned[] = '<div class = "login">'; $returned[] = '<form>'; $returned[] = '<p>Username: <input type = "text" name = "username" value = "'. @$_POST['username']. '"></p>'; $returned[] = '<p>Password: <input type = "text" name = "password" value = "'. @$_POST['password']. '"></p>'; $returned[] = '</form>'; $returned[] = '</div>'; //header end $returned[] = "</div>"; $returned[] = "<div class = 'nav'><div class = 'values'>"; //nav start $cslinks = (array_values(database::query('menu', $nhmenu, 'menu')[0])[0]); $exlinks = explode(',', $cslinks); $i = 0; while($i < count($exlinks)) { if($exlinks[$i] == 'home') { $returned[] = "<a href = '". explode('/', $_SERVER['REQUEST_URI'])[0]. "index.php'>". $exlinks[$i]. "</a> | "; } else if($i != count($exlinks)-1) { $returned[] = "<a href = '". explode('/', $_SERVER['REQUEST_URI'])[0]. $exlinks[$i]. ".php'>". $exlinks[$i]. "</a> | "; } else { $returned[] = "<a href = '". explode('/', $_SERVER['REQUEST_URI'])[0]. $exlinks[$i]. ".php'>". $exlinks[$i]. "</a>"; } $i++; //sorts out returning the menu contents, their respective links and their display names } //nav end $returned[] = "</div></div>"; //echo start $i = 0; while($i < count($returned)) { echo($returned[$i]); $i++; } } public function get_pcontent() { $returned = array(); $confdir = ($_SERVER['DOCUMENT_ROOT']. '\site\config.xml'); $xml= simplexml_load_file($confdir); $post_page = ($xml->pagedata->post_page); $fpost_page = (string)$post_page; $url = explode('/', $_SERVER['SCRIPT_NAME']); $curl = $url[count($url)-1]; if($curl == $fpost_page) { $content = database::query('post', '6', 'posts'); if(count($content != 0)) { $returned = $content; $ordered = self::reorder($returned); $opnum = count($ordered)-1; $i = 0; while($opnum >= $i) { $blocks = (self::construct_block($ordered[$i])); $secopnum = count($blocks)-1; $q = 0; while($secopnum >= $q) { echo($blocks[$q]); $q++; } $i++; } } else { echo('nothing found'); } } } public function reorder($vals) { $array_vals = array_values($vals); $return = array(); $opnum = count($array_vals) - 1; while($opnum >= 0) { unset($array_vals[$opnum]['id']); $return[] = $array_vals[$opnum]; $opnum--; } return(self::structure($return)); } public function structure($vals) { $opnum = count($vals)-1; $tfvals = array(); $i = 0; while($opnum >= $i) { $elements = count($vals[$i])-1; $nvals = array_values($vals[$i]); $fvals = array(); $q = 0; while($elements >= $q) { $fvals[] = $nvals[$q]; $q++; } $tfvals[] = $fvals; $i++; } return $tfvals; } public function construct_block($vals) { $post = array(); $post[] = '<div class = "post">'; $opnum = count($vals)-1; $post[] = '<h4 id = "post_'. $vals[0].'">'. $vals[0]. '</h4>'; $post[] = '<img id = "fimage" src = "'. $vals[4]. '"></img><br></br>'; $post[] = '<span id = "categories">'. $vals[1]. '</span>'; $post[] = '<h5 id = "author">'. $vals[2]. '</h5>'; $post[] = '<span id = "time">'. self::dtformat($vals[3]). '</span>'; $post[] = '<p id = "shcontent">'. $vals[5]. '</p>'; $post[] = '<p id = "lhcontent">'. $vals[6]. '</p>'; $post[] = '</div>'; return($post); } public function dtformat($datetime) { return($datetime); } public function get_rmenu() { } } class database { public function connect() { $confdir = ($_SERVER['DOCUMENT_ROOT']. '\site\config.xml'); $xml= simplexml_load_file($confdir); $host = ($xml->database->host); $user = ($xml->database->user); $pass = ($xml->database->pass); $db = ($xml->database->db); $nhost = (string)$host; $nuser = (string)$user; $npass = (string)$pass; $ndb = (string)$db; $con= mysql_connect($nhost, $nuser, $npass); if (mysql_error()) { return false; } else { if(mysql_select_db($ndb)) { return true; } else { return false; } } } public function query($type, $find, $table) { if(self::connect()) { if($type == "menu") { $find = preg_replace("/\s+/", "", $find); $query = "SELECT `elements` FROM `$table` WHERE `title` = '$find'"; $qres = mysql_query($query); $qnum = mysql_num_rows($qres); $fresult = array(); $i = 0; while($i < $qnum) { $fresult[] = mysql_fetch_assoc($qres); $i++; } return($fresult); } else if($type == "page") { //create page table //construct page } else if($type == "post") { $find = preg_replace("/\s+/", "", $find); $query = "SELECT * FROM `$table`"; $qres = mysql_query($query); $qnum = mysql_num_rows($qres); $fresult = array(); $i = 0; while($i < $qnum && $i < $find) { $fresult[] = mysql_fetch_assoc($qres); $i++; } return($fresult); } else if($type == "menu") { //create menu table //construct menus } else if($type == "widget") { //create widget table //construct widgets } else { return(mysql_error()); } } } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I9p5o
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  246     0  E > > RETURN                                                   1

Class content:
Function get_header:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 127
Branch analysis from position: 127
2 jumps found. (Code = 44) Position 1 = 130, Position 2 = 71
Branch analysis from position: 130
1 jumps found. (Code = 42) Position 1 = 137
Branch analysis from position: 137
2 jumps found. (Code = 44) Position 1 = 140, Position 2 = 134
Branch analysis from position: 140
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 134
2 jumps found. (Code = 44) Position 1 = 140, Position 2 = 134
Branch analysis from position: 140
Branch analysis from position: 134
Branch analysis from position: 71
2 jumps found. (Code = 43) Position 1 = 74, Position 2 = 89
Branch analysis from position: 74
1 jumps found. (Code = 42) Position 1 = 126
Branch analysis from position: 126
2 jumps found. (Code = 44) Position 1 = 130, Position 2 = 71
Branch analysis from position: 130
Branch analysis from position: 71
Branch analysis from position: 89
2 jumps found. (Code = 43) Position 1 = 93, Position 2 = 110
Branch analysis from position: 93
1 jumps found. (Code = 42) Position 1 = 126
Branch analysis from position: 126
Branch analysis from position: 110
2 jumps found. (Code = 44) Position 1 = 130, Position 2 = 71
Branch analysis from position: 130
Branch analysis from position: 71
filename:       /in/I9p5o
function name:  get_header
number of ops:  141
compiled vars:  !0 = $returned, !1 = $confdir, !2 = $xml, !3 = $title, !4 = $hmenu, !5 = $ntitle, !6 = $nhmenu, !7 = $cslinks, !8 = $exlinks, !9 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, <array>
    7     1        FETCH_R                      global              ~11     '_SERVER'
          2        FETCH_DIM_R                                      ~12     ~11, 'DOCUMENT_ROOT'
          3        CONCAT                                           ~13     ~12, '%5Csite%5Cconfig.xml'
          4        ASSIGN                                                   !1, ~13
    8     5        INIT_FCALL                                               'simplexml_load_file'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $15     
          8        ASSIGN                                                   !2, $15
    9     9        FETCH_OBJ_R                                      ~17     !2, 'site'
         10        FETCH_OBJ_R                                      ~18     ~17, 'title'
         11        ASSIGN                                                   !3, ~18
   10    12        FETCH_OBJ_R                                      ~20     !2, 'content'
         13        FETCH_OBJ_R                                      ~21     ~20, 'nav'
         14        ASSIGN                                                   !4, ~21
   11    15        CAST                                          6  ~23     !3
         16        ASSIGN                                                   !5, ~23
   12    17        CAST                                          6  ~25     !4
         18        ASSIGN                                                   !6, ~25
   13    19        ASSIGN_DIM                                               !0
         20        OP_DATA                                                  '%3Cdiv+class+%3D+%27header%27%3E'
   16    21        CONCAT                                           ~29     '%3Cdiv+class+%3D+%22title%22%3E%3Ch1%3E', !5
         22        CONCAT                                           ~30     ~29, '%3C%2Fh1%3E%3C%2Fdiv%3E'
         23        ASSIGN_DIM                                               !0
         24        OP_DATA                                                  ~30
   17    25        ASSIGN_DIM                                               !0
         26        OP_DATA                                                  '%3Cdiv+class+%3D+%22login%22%3E'
   18    27        ASSIGN_DIM                                               !0
         28        OP_DATA                                                  '%3Cform%3E'
   19    29        BEGIN_SILENCE                                    ~34     
         30        FETCH_R                      global              ~35     '_POST'
         31        FETCH_DIM_R                                      ~36     ~35, 'username'
         32        END_SILENCE                                              ~34
         33        CONCAT                                           ~37     '%3Cp%3EUsername%3A+%3Cinput+type+%3D+%22text%22+name+%3D+%22username%22+value+%3D+%22', ~36
         34        CONCAT                                           ~38     ~37, '%22%3E%3C%2Fp%3E'
         35        ASSIGN_DIM                                               !0
         36        OP_DATA                                                  ~38
   20    37        BEGIN_SILENCE                                    ~40     
         38        FETCH_R                      global              ~41     '_POST'
         39        FETCH_DIM_R                                      ~42     ~41, 'password'
         40        END_SILENCE                                              ~40
         41        CONCAT                                           ~43     '%3Cp%3EPassword%3A+%3Cinput+type+%3D+%22text%22+name+%3D+%22password%22+value+%3D+%22', ~42
         42        CONCAT                                           ~44     ~43, '%22%3E%3C%2Fp%3E'
         43        ASSIGN_DIM                                               !0
         44        OP_DATA                                                  ~44
   21    45        ASSIGN_DIM                                               !0
         46        OP_DATA                                                  '%3C%2Fform%3E'
   22    47        ASSIGN_DIM                                               !0
         48        OP_DATA                                                  '%3C%2Fdiv%3E'
   25    49        ASSIGN_DIM                                               !0
         50        OP_DATA                                                  '%3C%2Fdiv%3E'
   27    51        ASSIGN_DIM                                               !0
         52        OP_DATA                                                  '%3Cdiv+class+%3D+%27nav%27%3E%3Cdiv+class+%3D+%27values%27%3E'
   30    53        INIT_FCALL                                               'array_values'
         54        INIT_STATIC_METHOD_CALL                                  'database', 'query'
         55        SEND_VAL_EX                                              'menu'
         56        SEND_VAR_EX                                              !6
         57        SEND_VAL_EX                                              'menu'
         58        DO_FCALL                                      0  $49     
         59        FETCH_DIM_R                                      ~50     $49, 0
         60        SEND_VAL                                                 ~50
         61        DO_ICALL                                         $51     
         62        FETCH_DIM_R                                      ~52     $51, 0
         63        ASSIGN                                                   !7, ~52
   31    64        INIT_FCALL                                               'explode'
         65        SEND_VAL                                                 '%2C'
         66        SEND_VAR                                                 !7
         67        DO_ICALL                                         $54     
         68        ASSIGN                                                   !8, $54
   32    69        ASSIGN                                                   !9, 0
   33    70      > JMP                                                      ->127
   35    71    >   FETCH_DIM_R                                      ~57     !8, !9
         72        IS_EQUAL                                                 ~57, 'home'
         73      > JMPZ                                                     ~58, ->89
   37    74    >   INIT_FCALL                                               'explode'
         75        SEND_VAL                                                 '%2F'
         76        FETCH_R                      global              ~60     '_SERVER'
         77        FETCH_DIM_R                                      ~61     ~60, 'REQUEST_URI'
         78        SEND_VAL                                                 ~61
         79        DO_ICALL                                         $62     
         80        FETCH_DIM_R                                      ~63     $62, 0
         81        CONCAT                                           ~64     '%3Ca+href+%3D+%27', ~63
         82        CONCAT                                           ~65     ~64, 'index.php%27%3E'
         83        FETCH_DIM_R                                      ~66     !8, !9
         84        CONCAT                                           ~67     ~65, ~66
         85        CONCAT                                           ~68     ~67, '%3C%2Fa%3E+%7C++'
         86        ASSIGN_DIM                                               !0
         87        OP_DATA                                                  ~68
         88      > JMP                                                      ->126
   39    89    >   COUNT                                            ~69     !8
         90        SUB                                              ~70     ~69, 1
         91        IS_NOT_EQUAL                                             !9, ~70
         92      > JMPZ                                                     ~71, ->110
   41    93    >   INIT_FCALL                                               'explode'
         94        SEND_VAL                                                 '%2F'
         95        FETCH_R                      global              ~73     '_SERVER'
         96        FETCH_DIM_R                                      ~74     ~73, 'REQUEST_URI'
         97        SEND_VAL                                                 ~74
         98        DO_ICALL                                         $75     
         99        FETCH_DIM_R                                      ~76     $75, 0
        100        CONCAT                                           ~77     '%3Ca+href+%3D+%27', ~76
        101        FETCH_DIM_R                                      ~78     !8, !9
        102        CONCAT                                           ~79     ~77, ~78
        103        CONCAT                                           ~80     ~79, '.php%27%3E'
        104        FETCH_DIM_R                                      ~81     !8, !9
        105        CONCAT                                           ~82     ~80, ~81
        106        CONCAT                                           ~83     ~82, '%3C%2Fa%3E+%7C+'
        107        ASSIGN_DIM                                               !0
        108        OP_DATA                                                  ~83
        109      > JMP                                                      ->126
   45   110    >   INIT_FCALL                                               'explode'
        111        SEND_VAL                                                 '%2F'
        112        FETCH_R                      global              ~85     '_SERVER'
        113        FETCH_DIM_R                                      ~86     ~85, 'REQUEST_URI'
        114        SEND_VAL                                                 ~86
        115        DO_ICALL                                         $87     
        116        FETCH_DIM_R                                      ~88     $87, 0
        117        CONCAT                                           ~89     '%3Ca+href+%3D+%27', ~88
        118        FETCH_DIM_R                                      ~90     !8, !9
        119        CONCAT                                           ~91     ~89, ~90
        120        CONCAT                                           ~92     ~91, '.php%27%3E'
        121        FETCH_DIM_R                                      ~93     !8, !9
        122        CONCAT                                           ~94     ~92, ~93
        123        CONCAT                                           ~95     ~94, '%3C%2Fa%3E'
        124        ASSIGN_DIM                                               !0
        125        OP_DATA                                                  ~95
   47   126    >   PRE_INC                                                  !9
   33   127    >   COUNT                                            ~97     !8
        128        IS_SMALLER                                               !9, ~97
        129      > JMPNZ                                                    ~98, ->71
   52   130    >   ASSIGN_DIM                                               !0
        131        OP_DATA                                                  '%3C%2Fdiv%3E%3C%2Fdiv%3E'
   55   132        ASSIGN                                                   !9, 0
   56   133      > JMP                                                      ->137
   58   134    >   FETCH_DIM_R                                      ~101    !0, !9
        135        ECHO                                                     ~101
   59   136        PRE_INC                                                  !9
   56   137    >   COUNT                                            ~103    !0
        138        IS_SMALLER                                               !9, ~103
        139      > JMPNZ                                                    ~104, ->134
   61   140    > > RETURN                                                   null

End of function get_header

Function get_pcontent:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 67
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 66
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 63
Branch analysis from position: 63
2 jumps found. (Code = 44) Position 1 = 65, Position 2 = 46
Branch analysis from position: 65
1 jumps found. (Code = 42) Position 1 = 67
Branch analysis from position: 67
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
1 jumps found. (Code = 42) Position 1 = 60
Branch analysis from position: 60
2 jumps found. (Code = 44) Position 1 = 62, Position 2 = 57
Branch analysis from position: 62
2 jumps found. (Code = 44) Position 1 = 65, Position 2 = 46
Branch analysis from position: 65
Branch analysis from position: 46
Branch analysis from position: 57
2 jumps found. (Code = 44) Position 1 = 62, Position 2 = 57
Branch analysis from position: 62
Branch analysis from position: 57
Branch analysis from position: 66
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 67
filename:       /in/I9p5o
function name:  get_pcontent
number of ops:  68
compiled vars:  !0 = $returned, !1 = $confdir, !2 = $xml, !3 = $post_page, !4 = $fpost_page, !5 = $url, !6 = $curl, !7 = $content, !8 = $ordered, !9 = $opnum, !10 = $i, !11 = $blocks, !12 = $secopnum, !13 = $q
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   64     0  E >   ASSIGN                                                   !0, <array>
   65     1        FETCH_R                      global              ~15     '_SERVER'
          2        FETCH_DIM_R                                      ~16     ~15, 'DOCUMENT_ROOT'
          3        CONCAT                                           ~17     ~16, '%5Csite%5Cconfig.xml'
          4        ASSIGN                                                   !1, ~17
   66     5        INIT_FCALL                                               'simplexml_load_file'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $19     
          8        ASSIGN                                                   !2, $19
   67     9        FETCH_OBJ_R                                      ~21     !2, 'pagedata'
         10        FETCH_OBJ_R                                      ~22     ~21, 'post_page'
         11        ASSIGN                                                   !3, ~22
   68    12        CAST                                          6  ~24     !3
         13        ASSIGN                                                   !4, ~24
   69    14        INIT_FCALL                                               'explode'
         15        SEND_VAL                                                 '%2F'
         16        FETCH_R                      global              ~26     '_SERVER'
         17        FETCH_DIM_R                                      ~27     ~26, 'SCRIPT_NAME'
         18        SEND_VAL                                                 ~27
         19        DO_ICALL                                         $28     
         20        ASSIGN                                                   !5, $28
   70    21        COUNT                                            ~30     !5
         22        SUB                                              ~31     ~30, 1
         23        FETCH_DIM_R                                      ~32     !5, ~31
         24        ASSIGN                                                   !6, ~32
   71    25        IS_EQUAL                                                 !6, !4
         26      > JMPZ                                                     ~34, ->67
   73    27    >   INIT_STATIC_METHOD_CALL                                  'database', 'query'
         28        SEND_VAL_EX                                              'post'
         29        SEND_VAL_EX                                              '6'
         30        SEND_VAL_EX                                              'posts'
         31        DO_FCALL                                      0  $35     
         32        ASSIGN                                                   !7, $35
   74    33        IS_NOT_EQUAL                                     ~37     !7, 0
         34        COUNT                                            ~38     ~37
         35      > JMPZ                                                     ~38, ->66
   76    36    >   ASSIGN                                                   !0, !7
   77    37        INIT_STATIC_METHOD_CALL                                  'reorder'
         38        SEND_VAR_EX                                              !0
         39        DO_FCALL                                      0  $40     
         40        ASSIGN                                                   !8, $40
   78    41        COUNT                                            ~42     !8
         42        SUB                                              ~43     ~42, 1
         43        ASSIGN                                                   !9, ~43
   79    44        ASSIGN                                                   !10, 0
   80    45      > JMP                                                      ->63
   82    46    >   INIT_STATIC_METHOD_CALL                                  'construct_block'
         47        CHECK_FUNC_ARG                                           
         48        FETCH_DIM_FUNC_ARG                               $46     !8, !10
         49        SEND_FUNC_ARG                                            $46
         50        DO_FCALL                                      0  $47     
         51        ASSIGN                                                   !11, $47
   83    52        COUNT                                            ~49     !11
         53        SUB                                              ~50     ~49, 1
         54        ASSIGN                                                   !12, ~50
   84    55        ASSIGN                                                   !13, 0
   85    56      > JMP                                                      ->60
   87    57    >   FETCH_DIM_R                                      ~53     !11, !13
         58        ECHO                                                     ~53
   88    59        PRE_INC                                                  !13
   85    60    >   IS_SMALLER_OR_EQUAL                                      !13, !12
         61      > JMPNZ                                                    ~55, ->57
   90    62    >   PRE_INC                                                  !10
   80    63    >   IS_SMALLER_OR_EQUAL                                      !10, !9
         64      > JMPNZ                                                    ~57, ->46
         65    > > JMP                                                      ->67
   95    66    >   ECHO                                                     'nothing+found'
   98    67    > > RETURN                                                   null

End of function get_pcontent

Function reorder:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 10
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 10
Branch analysis from position: 18
Branch analysis from position: 10
filename:       /in/I9p5o
function name:  reorder
number of ops:  23
compiled vars:  !0 = $vals, !1 = $array_vals, !2 = $return, !3 = $opnum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   99     0  E >   RECV                                             !0      
  101     1        INIT_FCALL                                               'array_values'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
  102     5        ASSIGN                                                   !2, <array>
  103     6        COUNT                                            ~7      !1
          7        SUB                                              ~8      ~7, 1
          8        ASSIGN                                                   !3, ~8
  104     9      > JMP                                                      ->16
  106    10    >   FETCH_DIM_UNSET                                  $10     !1, !3
         11        UNSET_DIM                                                $10, 'id'
  107    12        FETCH_DIM_R                                      ~12     !1, !3
         13        ASSIGN_DIM                                               !2
         14        OP_DATA                                                  ~12
  108    15        PRE_DEC                                                  !3
  104    16    >   IS_SMALLER_OR_EQUAL                                      0, !3
         17      > JMPNZ                                                    ~14, ->10
  110    18    >   INIT_STATIC_METHOD_CALL                                  'structure'
         19        SEND_VAR_EX                                              !2
         20        DO_FCALL                                      0  $15     
         21      > RETURN                                                   $15
  111    22*     > RETURN                                                   null

End of function reorder

Function structure:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 7
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 19
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 7
Branch analysis from position: 30
Branch analysis from position: 7
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 25, Position 2 = 19
Branch analysis from position: 25
Branch analysis from position: 19
filename:       /in/I9p5o
function name:  structure
number of ops:  32
compiled vars:  !0 = $vals, !1 = $opnum, !2 = $tfvals, !3 = $i, !4 = $elements, !5 = $nvals, !6 = $fvals, !7 = $q
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  112     0  E >   RECV                                             !0      
  114     1        COUNT                                            ~8      !0
          2        SUB                                              ~9      ~8, 1
          3        ASSIGN                                                   !1, ~9
  115     4        ASSIGN                                                   !2, <array>
  116     5        ASSIGN                                                   !3, 0
  117     6      > JMP                                                      ->28
  119     7    >   FETCH_DIM_R                                      ~13     !0, !3
          8        COUNT                                            ~14     ~13
          9        SUB                                              ~15     ~14, 1
         10        ASSIGN                                                   !4, ~15
  120    11        INIT_FCALL                                               'array_values'
         12        FETCH_DIM_R                                      ~17     !0, !3
         13        SEND_VAL                                                 ~17
         14        DO_ICALL                                         $18     
         15        ASSIGN                                                   !5, $18
  121    16        ASSIGN                                                   !6, <array>
  122    17        ASSIGN                                                   !7, 0
  123    18      > JMP                                                      ->23
  125    19    >   FETCH_DIM_R                                      ~23     !5, !7
         20        ASSIGN_DIM                                               !6
         21        OP_DATA                                                  ~23
  126    22        PRE_INC                                                  !7
  123    23    >   IS_SMALLER_OR_EQUAL                                      !7, !4
         24      > JMPNZ                                                    ~25, ->19
  128    25    >   ASSIGN_DIM                                               !2
         26        OP_DATA                                                  !6
  129    27        PRE_INC                                                  !3
  117    28    >   IS_SMALLER_OR_EQUAL                                      !3, !1
         29      > JMPNZ                                                    ~28, ->7
  131    30    > > RETURN                                                   !2
  132    31*     > RETURN                                                   null

End of function structure

Function construct_block:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I9p5o
function name:  construct_block
number of ops:  53
compiled vars:  !0 = $vals, !1 = $post, !2 = $opnum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
  133     0  E >   RECV                                             !0      
  135     1        ASSIGN                                                   !1, <array>
  136     2        ASSIGN_DIM                                               !1
          3        OP_DATA                                                  '%3Cdiv+class+%3D+%22post%22%3E'
  138     4        COUNT                                            ~5      !0
          5        SUB                                              ~6      ~5, 1
          6        ASSIGN                                                   !2, ~6
  139     7        FETCH_DIM_R                                      ~9      !0, 0
          8        CONCAT                                           ~10     '%3Ch4+id+%3D+%22post_', ~9
          9        CONCAT                                           ~11     ~10, '%22%3E'
         10        FETCH_DIM_R                                      ~12     !0, 0
         11        CONCAT                                           ~13     ~11, ~12
         12        CONCAT                                           ~14     ~13, '%3C%2Fh4%3E'
         13        ASSIGN_DIM                                               !1
         14        OP_DATA                                                  ~14
  140    15        FETCH_DIM_R                                      ~16     !0, 4
         16        CONCAT                                           ~17     '%3Cimg+id+%3D+%22fimage%22+src+%3D+%22', ~16
         17        CONCAT                                           ~18     ~17, '%22%3E%3C%2Fimg%3E%3Cbr%3E%3C%2Fbr%3E'
         18        ASSIGN_DIM                                               !1
         19        OP_DATA                                                  ~18
  141    20        FETCH_DIM_R                                      ~20     !0, 1
         21        CONCAT                                           ~21     '%3Cspan+id+%3D+%22categories%22%3E', ~20
         22        CONCAT                                           ~22     ~21, '%3C%2Fspan%3E'
         23        ASSIGN_DIM                                               !1
         24        OP_DATA                                                  ~22
  142    25        FETCH_DIM_R                                      ~24     !0, 2
         26        CONCAT                                           ~25     '%3Ch5+id+%3D+%22author%22%3E', ~24
         27        CONCAT                                           ~26     ~25, '%3C%2Fh5%3E'
         28        ASSIGN_DIM                                               !1
         29        OP_DATA                                                  ~26
  143    30        INIT_STATIC_METHOD_CALL                                  'dtformat'
         31        CHECK_FUNC_ARG                                           
         32        FETCH_DIM_FUNC_ARG                               $28     !0, 3
         33        SEND_FUNC_ARG                                            $28
         34        DO_FCALL                                      0  $29     
         35        CONCAT                                           ~30     '%3Cspan+id+%3D+%22time%22%3E', $29
         36        CONCAT                                           ~31     ~30, '%3C%2Fspan%3E'
         37        ASSIGN_DIM                                               !1
         38        OP_DATA                                                  ~31
  144    39        FETCH_DIM_R                                      ~33     !0, 5
         40        CONCAT                                           ~34     '%3Cp+id+%3D+%22shcontent%22%3E', ~33
         41        CONCAT                                           ~35     ~34, '%3C%2Fp%3E'
         42        ASSIGN_DIM                                               !1
         43        OP_DATA                                                  ~35
  145    44        FETCH_DIM_R                                      ~37     !0, 6
         45        CONCAT                               

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.43 ms | 1428 KiB | 19 Q