3v4l.org

run code in 300+ PHP versions simultaneously
<?php class td_module_mega_menu extends td_module { function __construct($post) { //run the parrent constructor parent::__construct($post); } function render() { ob_start(); ?> <div class="td_mod_mega_menu"> <?php echo $this->get_image('art-big-1col');?> <div class="item-details"> <?php echo $this->get_title(td_util::get_option('tds_mod3_title_excerpt'));?> </div> </div> <?php return ob_get_clean(); } function get_title($excerpt_lenght = '') { $buffy = ''; $buffy .= '<h4 itemprop="name" class="entry-title">'; $buffy .='<a itemprop="url" href="' . $this->href . '" rel="bookmark" title="' . $this->title_attribute . '">'; if (!empty($excerpt_lenght)) { $buffy .= td_util::excerpt($this->title, $excerpt_lenght, 'show_shortcodes'); } else { $buffy .= $this->title; } $buffy .='</a>'; $buffy .= '</h4>'; return $buffy; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SQhKl
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'td_module_mega_menu', 'td_module'
   41     1      > RETURN                                                   1

Class td_module_mega_menu:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SQhKl
function name:  __construct
number of ops:  5
compiled vars:  !0 = $post
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        INIT_STATIC_METHOD_CALL                                  
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
    8     4      > RETURN                                                   null

End of function __construct

Function render:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SQhKl
function name:  render
number of ops:  20
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'ob_start'
          1        DO_ICALL                                                 
   13     2        ECHO                                                     '%0A++++++++%3Cdiv+class%3D%22td_mod_mega_menu%22%3E%0A++++++++++++'
   15     3        INIT_METHOD_CALL                                         'get_image'
          4        SEND_VAL_EX                                              'art-big-1col'
          5        DO_FCALL                                      0  $1      
          6        ECHO                                                     $1
   16     7        ECHO                                                     '++++++++++++%3Cdiv+class%3D%22item-details%22%3E%0A++++++++++++++++'
   17     8        INIT_METHOD_CALL                                         'get_title'
          9        INIT_STATIC_METHOD_CALL                                  'td_util', 'get_option'
         10        SEND_VAL_EX                                              'tds_mod3_title_excerpt'
         11        DO_FCALL                                      0  $2      
         12        SEND_VAR_NO_REF_EX                                       $2
         13        DO_FCALL                                      0  $3      
         14        ECHO                                                     $3
   18    15        ECHO                                                     '++++++++++++%3C%2Fdiv%3E%0A++++++++%3C%2Fdiv%3E%0A++++++++'
   20    16        INIT_FCALL                                               'ob_get_clean'
         17        DO_ICALL                                         $4      
         18      > RETURN                                                   $4
   21    19*     > RETURN                                                   null

End of function render

Function get_title:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 22
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SQhKl
function name:  get_title
number of ops:  28
compiled vars:  !0 = $excerpt_lenght, !1 = $buffy
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   RECV_INIT                                        !0      ''
   28     1        ASSIGN                                                   !1, ''
   29     2        ASSIGN_OP                                     8          !1, '%3Ch4+itemprop%3D%22name%22+class%3D%22entry-title%22%3E'
   30     3        FETCH_OBJ_R                                      ~4      'href'
          4        CONCAT                                           ~5      '%3Ca+itemprop%3D%22url%22+href%3D%22', ~4
          5        CONCAT                                           ~6      ~5, '%22+rel%3D%22bookmark%22+title%3D%22'
          6        FETCH_OBJ_R                                      ~7      'title_attribute'
          7        CONCAT                                           ~8      ~6, ~7
          8        CONCAT                                           ~9      ~8, '%22%3E'
          9        ASSIGN_OP                                     8          !1, ~9
   31    10        ISSET_ISEMPTY_CV                                 ~11     !0
         11        BOOL_NOT                                         ~12     ~11
         12      > JMPZ                                                     ~12, ->22
   32    13    >   INIT_STATIC_METHOD_CALL                                  'td_util', 'excerpt'
         14        CHECK_FUNC_ARG                                           
         15        FETCH_OBJ_FUNC_ARG                               $13     'title'
         16        SEND_FUNC_ARG                                            $13
         17        SEND_VAR_EX                                              !0
         18        SEND_VAL_EX                                              'show_shortcodes'
         19        DO_FCALL                                      0  $14     
         20        ASSIGN_OP                                     8          !1, $14
         21      > JMP                                                      ->24
   34    22    >   FETCH_OBJ_R                                      ~16     'title'
         23        ASSIGN_OP                                     8          !1, ~16
   36    24    >   ASSIGN_OP                                     8          !1, '%3C%2Fa%3E'
   37    25        ASSIGN_OP                                     8          !1, '%3C%2Fh4%3E'
   38    26      > RETURN                                                   !1
   39    27*     > RETURN                                                   null

End of function get_title

End of class td_module_mega_menu.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.84 ms | 1400 KiB | 17 Q