3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ControllerInformationInformation extends Controller { public function index() { $this->language->load('information/information'); $this->load->model('catalog/information'); $this->data['breadcrumbs'] = array(); $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_home'), 'href' => $this->url->link('common/home'), 'separator' => false ); if (isset($this->request->get['information_id'])) { $information_id = $this->request->get['information_id']; } else { $information_id = 0; } $information_info = $this->model_catalog_information->getInformation($information_id); if ($information_info) { $this->document->setTitle($information_info['title']); $this->data['breadcrumbs'][] = array( 'text' => $information_info['title'], 'href' => $this->url->link('information/information', 'information_id=' . $information_id), 'separator' => $this->language->get('text_separator') ); $this->data['heading_title'] = $information_info['title']; $this->data['button_continue'] = $this->language->get('button_continue'); $this->data['description'] = html_entity_decode($information_info['description'], ENT_QUOTES, 'UTF-8'); $this->data['continue'] = $this->url->link('common/home'); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/information/information.tpl')) { $this->template = $this->config->get('config_template') . '/template/information/information.tpl'; } else { $this->template = 'default/template/information/information.tpl'; } $this->children = array( 'common/column_left', 'common/column_right', 'common/content_top', 'common/content_bottom', 'common/footer', 'common/header' ); $this->response->setOutput($this->render()); } else { $this->data['breadcrumbs'][] = array( 'text' => $this->language->get('text_error'), 'href' => $this->url->link('information/information', 'information_id=' . $information_id), 'separator' => $this->language->get('text_separator') ); $this->document->setTitle($this->language->get('text_error')); $this->data['heading_title'] = $this->language->get('text_error'); $this->data['text_error'] = $this->language->get('text_error'); $this->data['button_continue'] = $this->language->get('button_continue'); $this->data['continue'] = $this->url->link('common/home'); if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/error/not_found.tpl')) { $this->template = $this->config->get('config_template') . '/template/error/not_found.tpl'; } else { $this->template = 'default/template/error/not_found.tpl'; } $this->children = array( 'common/column_left', 'common/column_right', 'common/content_top', 'common/content_bottom', 'common/footer', 'common/header' ); $this->response->setOutput($this->render()); } } public function info() { $this->load->model('catalog/information'); if (isset($this->request->get['information_id'])) { $information_id = $this->request->get['information_id']; } else { $information_id = 0; } $information_info = $this->model_catalog_information->getInformation($information_id); if ($information_info) { $output = '<html dir="ltr" lang="en">' . "\n"; $output .= '<head>' . "\n"; $output .= ' <title>' . $information_info['title'] . '</title>' . "\n"; $output .= ' <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">' . "\n"; $output .= '</head>' . "\n"; $output .= '<body>' . "\n"; $output .= ' <h1>' . $information_info['title'] . '</h1>' . "\n"; $output .= html_entity_decode($information_info['description'], ENT_QUOTES, 'UTF-8') . "\n"; $output .= ' </body>' . "\n"; $output .= '</html>' . "\n"; $this->response->setOutput($output); } } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mH9oc
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                            'controllerinformationinformation', 'controller'
  120     1      > RETURN                                                   1

Class ControllerInformationInformation:
Function index:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 35
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
2 jumps found. (Code = 43) Position 1 = 42, Position 2 = 123
Branch analysis from position: 42
2 jumps found. (Code = 43) Position 1 = 104, Position 2 = 112
Branch analysis from position: 104
1 jumps found. (Code = 42) Position 1 = 114
Branch analysis from position: 114
1 jumps found. (Code = 42) Position 1 = 209
Branch analysis from position: 209
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 112
1 jumps found. (Code = 42) Position 1 = 209
Branch analysis from position: 209
Branch analysis from position: 123
2 jumps found. (Code = 43) Position 1 = 191, Position 2 = 199
Branch analysis from position: 191
1 jumps found. (Code = 42) Position 1 = 201
Branch analysis from position: 201
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 199
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 42, Position 2 = 123
Branch analysis from position: 42
Branch analysis from position: 123
filename:       /in/mH9oc
function name:  index
number of ops:  210
compiled vars:  !0 = $information_id, !1 = $information_info
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_OBJ_R                                      ~2      'language'
          1        INIT_METHOD_CALL                                         ~2, 'load'
          2        SEND_VAL_EX                                              'information%2Finformation'
          3        DO_FCALL                                      0          
    6     4        FETCH_OBJ_R                                      ~4      'load'
          5        INIT_METHOD_CALL                                         ~4, 'model'
          6        SEND_VAL_EX                                              'catalog%2Finformation'
          7        DO_FCALL                                      0          
    8     8        FETCH_OBJ_W                                      $6      'data'
          9        ASSIGN_DIM                                               $6, 'breadcrumbs'
         10        OP_DATA                                                  <array>
   11    11        FETCH_OBJ_R                                      ~11     'language'
         12        INIT_METHOD_CALL                                         ~11, 'get'
         13        SEND_VAL_EX                                              'text_home'
         14        DO_FCALL                                      0  $12     
         15        INIT_ARRAY                                       ~13     $12, 'text'
   12    16        FETCH_OBJ_R                                      ~14     'url'
         17        INIT_METHOD_CALL                                         ~14, 'link'
         18        SEND_VAL_EX                                              'common%2Fhome'
         19        DO_FCALL                                      0  $15     
         20        ADD_ARRAY_ELEMENT                                ~13     $15, 'href'
   11    21        ADD_ARRAY_ELEMENT                                ~13     <false>, 'separator'
   10    22        FETCH_OBJ_W                                      $8      'data'
         23        FETCH_DIM_W                                      $9      $8, 'breadcrumbs'
         24        ASSIGN_DIM                                               $9
   11    25        OP_DATA                                                  ~13
   16    26        FETCH_OBJ_IS                                     ~16     'request'
         27        FETCH_OBJ_IS                                     ~17     ~16, 'get'
         28        ISSET_ISEMPTY_DIM_OBJ                         0          ~17, 'information_id'
         29      > JMPZ                                                     ~18, ->35
   17    30    >   FETCH_OBJ_R                                      ~19     'request'
         31        FETCH_OBJ_R                                      ~20     ~19, 'get'
         32        FETCH_DIM_R                                      ~21     ~20, 'information_id'
         33        ASSIGN                                                   !0, ~21
         34      > JMP                                                      ->36
   19    35    >   ASSIGN                                                   !0, 0
   22    36    >   FETCH_OBJ_R                                      ~24     'model_catalog_information'
         37        INIT_METHOD_CALL                                         ~24, 'getInformation'
         38        SEND_VAR_EX                                              !0
         39        DO_FCALL                                      0  $25     
         40        ASSIGN                                                   !1, $25
   24    41      > JMPZ                                                     !1, ->123
   25    42    >   FETCH_OBJ_R                                      ~27     'document'
         43        INIT_METHOD_CALL                                         ~27, 'setTitle'
         44        CHECK_FUNC_ARG                                           
         45        FETCH_DIM_FUNC_ARG                               $28     !1, 'title'
         46        SEND_FUNC_ARG                                            $28
         47        DO_FCALL                                      0          
   28    48        FETCH_DIM_R                                      ~33     !1, 'title'
         49        INIT_ARRAY                                       ~34     ~33, 'text'
   29    50        FETCH_OBJ_R                                      ~35     'url'
         51        INIT_METHOD_CALL                                         ~35, 'link'
         52        SEND_VAL_EX                                              'information%2Finformation'
         53        CONCAT                                           ~36     'information_id%3D', !0
         54        SEND_VAL_EX                                              ~36
         55        DO_FCALL                                      0  $37     
         56        ADD_ARRAY_ELEMENT                                ~34     $37, 'href'
   30    57        FETCH_OBJ_R                                      ~38     'language'
         58        INIT_METHOD_CALL                                         ~38, 'get'
         59        SEND_VAL_EX                                              'text_separator'
         60        DO_FCALL                                      0  $39     
         61        ADD_ARRAY_ELEMENT                                ~34     $39, 'separator'
   27    62        FETCH_OBJ_W                                      $30     'data'
         63        FETCH_DIM_W                                      $31     $30, 'breadcrumbs'
         64        ASSIGN_DIM                                               $31
   30    65        OP_DATA                                                  ~34
   33    66        FETCH_DIM_R                                      ~42     !1, 'title'
         67        FETCH_OBJ_W                                      $40     'data'
         68        ASSIGN_DIM                                               $40, 'heading_title'
         69        OP_DATA                                                  ~42
   35    70        FETCH_OBJ_R                                      ~45     'language'
         71        INIT_METHOD_CALL                                         ~45, 'get'
         72        SEND_VAL_EX                                              'button_continue'
         73        DO_FCALL                                      0  $46     
         74        FETCH_OBJ_W                                      $43     'data'
         75        ASSIGN_DIM                                               $43, 'button_continue'
         76        OP_DATA                                                  $46
   37    77        INIT_FCALL                                               'html_entity_decode'
         78        FETCH_DIM_R                                      ~49     !1, 'description'
         79        SEND_VAL                                                 ~49
         80        SEND_VAL                                                 3
         81        SEND_VAL                                                 'UTF-8'
         82        DO_ICALL                                         $50     
         83        FETCH_OBJ_W                                      $47     'data'
         84        ASSIGN_DIM                                               $47, 'description'
         85        OP_DATA                                                  $50
   39    86        FETCH_OBJ_R                                      ~53     'url'
         87        INIT_METHOD_CALL                                         ~53, 'link'
         88        SEND_VAL_EX                                              'common%2Fhome'
         89        DO_FCALL                                      0  $54     
         90        FETCH_OBJ_W                                      $51     'data'
         91        ASSIGN_DIM                                               $51, 'continue'
         92        OP_DATA                                                  $54
   41    93        INIT_FCALL                                               'file_exists'
         94        FETCH_CONSTANT                                   ~55     'DIR_TEMPLATE'
         95        FETCH_OBJ_R                                      ~56     'config'
         96        INIT_METHOD_CALL                                         ~56, 'get'
         97        SEND_VAL_EX                                              'config_template'
         98        DO_FCALL                                      0  $57     
         99        CONCAT                                           ~58     ~55, $57
        100        CONCAT                                           ~59     ~58, '%2Ftemplate%2Finformation%2Finformation.tpl'
        101        SEND_VAL                                                 ~59
        102        DO_ICALL                                         $60     
        103      > JMPZ                                                     $60, ->112
   42   104    >   FETCH_OBJ_R                                      ~62     'config'
        105        INIT_METHOD_CALL                                         ~62, 'get'
        106        SEND_VAL_EX                                              'config_template'
        107        DO_FCALL                                      0  $63     
        108        CONCAT                                           ~64     $63, '%2Ftemplate%2Finformation%2Finformation.tpl'
        109        ASSIGN_OBJ                                               'template'
        110        OP_DATA                                                  ~64
        111      > JMP                                                      ->114
   44   112    >   ASSIGN_OBJ                                               'template'
        113        OP_DATA                                                  'default%2Ftemplate%2Finformation%2Finformation.tpl'
   47   114    >   ASSIGN_OBJ                                               'children'
   48   115        OP_DATA                                                  <array>
   56   116        FETCH_OBJ_R                                      ~67     'response'
        117        INIT_METHOD_CALL                                         ~67, 'setOutput'
        118        INIT_METHOD_CALL                                         'render'
        119        DO_FCALL                                      0  $68     
        120        SEND_VAR_NO_REF_EX                                       $68
        121        DO_FCALL                                      0          
        122      > JMP                                                      ->209
   59   123    >   FETCH_OBJ_R                                      ~73     'language'
        124        INIT_METHOD_CALL                                         ~73, 'get'
        125        SEND_VAL_EX                                              'text_error'
        126        DO_FCALL                                      0  $74     
        127        INIT_ARRAY                                       ~75     $74, 'text'
   60   128        FETCH_OBJ_R                                      ~76     'url'
        129        INIT_METHOD_CALL                                         ~76, 'link'
        130        SEND_VAL_EX                                              'information%2Finformation'
        131        CONCAT                                           ~77     'information_id%3D', !0
        132        SEND_VAL_EX                                              ~77
        133        DO_FCALL                                      0  $78     
        134        ADD_ARRAY_ELEMENT                                ~75     $78, 'href'
   61   135        FETCH_OBJ_R                                      ~79     'language'
        136        INIT_METHOD_CALL                                         ~79, 'get'
        137        SEND_VAL_EX                                              'text_separator'
        138        DO_FCALL                                      0  $80     
        139        ADD_ARRAY_ELEMENT                                ~75     $80, 'separator'
   58   140        FETCH_OBJ_W                                      $70     'data'
        141        FETCH_DIM_W                                      $71     $70, 'breadcrumbs'
        142        ASSIGN_DIM                                               $71
   61   143        OP_DATA                                                  ~75
   64   144        FETCH_OBJ_R                                      ~81     'document'
        145        INIT_METHOD_CALL                                         ~81, 'setTitle'
        146        FETCH_OBJ_R                                      ~82     'language'
        147        INIT_METHOD_CALL                                         ~82, 'get'
        148        SEND_VAL_EX                                              'text_error'
        149        DO_FCALL                                      0  $83     
        150        SEND_VAR_NO_REF_EX                                       $83
        151        DO_FCALL                                      0          
   66   152        FETCH_OBJ_R                                      ~87     'language'
        153        INIT_METHOD_CALL                                         ~87, 'get'
        154        SEND_VAL_EX                                              'text_error'
        155        DO_FCALL                                      0  $88     
        156        FETCH_OBJ_W                                      $85     'data'
        157        ASSIGN_DIM                                               $85, 'heading_title'
        158        OP_DATA                                                  $88
   68   159        FETCH_OBJ_R                                      ~91     'language'
        160        INIT_METHOD_CALL                                         ~91, 'get'
        161        SEND_VAL_EX                                              'text_error'
        162        DO_FCALL                                      0  $92     
        163        FETCH_OBJ_W                                      $89     'data'
        164        ASSIGN_DIM                                               $89, 'text_error'
        165        OP_DATA                                                  $92
   70   166        FETCH_OBJ_R                                      ~95     'language'
        167        INIT_METHOD_CALL                                         ~95, 'get'
        168        SEND_VAL_EX                                              'button_continue'
        169        DO_FCALL                                      0  $96     
        170        FETCH_OBJ_W                                      $93     'data'
        171        ASSIGN_DIM                                               $93, 'button_continue'
        172        OP_DATA                                                  $96
   72   173        FETCH_OBJ_R                                      ~99     'url'
        174        INIT_METHOD_CALL                                         ~99, 'link'
        175        SEND_VAL_EX                                              'common%2Fhome'
        176        DO_FCALL                                      0  $100    
        177        FETCH_OBJ_W                                      $97     'data'
        178        ASSIGN_DIM                                               $97, 'continue'
        179        OP_DATA                                                  $100
   74   180        INIT_FCALL                                               'file_exists'
        181        FETCH_CONSTANT                                   ~101    'DIR_TEMPLATE'
        182        FETCH_OBJ_R                                      ~102    'config'
        183        INIT_METHOD_CALL                                         ~102, 'get'
        184        SEND_VAL_EX                                              'config_template'
        185        DO_FCALL                                      0  $103    
        186        CONCAT                                           ~104    ~101, $103
        187        CONCAT                                           ~105    ~104, '%2Ftemplate%2Ferror%2Fnot_found.tpl'
        188        SEND_VAL                                                 ~105
        189        DO_ICALL                                         $106    
        190      > JMPZ                                                     $106, ->199
   75   191    >   FETCH_OBJ_R                                      ~108    'config'
        192        INIT_METHOD_CALL                                         ~108, 'get'
        193        SEND_VAL_EX                                              'config_template'
        194        DO_FCALL                                      0  $109    
        195        CONCAT                                           ~110    $109, '%2Ftemplate%2Ferror%2Fnot_found.tpl'
        196        ASSIGN_OBJ                                               'template'
        197        OP_DATA                                                  ~110
        198      > JMP                                                      ->201
   77   199    >   ASSIGN_OBJ                                               'template'
        200        OP_DATA                                                  'default%2Ftemplate%2Ferror%2Fnot_found.tpl'
   80   201    >   ASSIGN_OBJ                                               'children'
   81   202        OP_DATA                                                  <array>
   89   203        FETCH_OBJ_R                                      ~113    'response'
        204        INIT_METHOD_CALL                                         ~113, 'setOutput'
        205        INIT_METHOD_CALL                                         'render'
        206        DO_FCALL                                      0  $114    
        207        SEND_VAR_NO_REF_EX                                       $114
        208        DO_FCALL                                      0          
   91   209    > > RETURN                                                   null

End of function index

Function info:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 49
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 49
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 49
Branch analysis from position: 20
Branch analysis from position: 49
filename:       /in/mH9oc
function name:  info
number of ops:  50
compiled vars:  !0 = $information_id, !1 = $information_info, !2 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   94     0  E >   FETCH_OBJ_R                                      ~3      'load'
          1        INIT_METHOD_CALL                                         ~3, 'model'
          2        SEND_VAL_EX                                              'catalog%2Finformation'
          3        DO_FCALL                                      0          
   96     4        FETCH_OBJ_IS                                     ~5      'request'
          5        FETCH_OBJ_IS                                     ~6      ~5, 'get'
          6        ISSET_ISEMPTY_DIM_OBJ                         0          ~6, 'information_id'
          7      > JMPZ                                                     ~7, ->13
   97     8    >   FETCH_OBJ_R                                      ~8      'request'
          9        FETCH_OBJ_R                                      ~9      ~8, 'get'
         10        FETCH_DIM_R                                      ~10     ~9, 'information_id'
         11        ASSIGN                                                   !0, ~10
         12      > JMP                                                      ->14
   99    13    >   ASSIGN                                                   !0, 0
  102    14    >   FETCH_OBJ_R                                      ~13     'model_catalog_information'
         15        INIT_METHOD_CALL                                         ~13, 'getInformation'
         16        SEND_VAR_EX                                              !0
         17        DO_FCALL                                      0  $14     
         18        ASSIGN                                                   !1, $14
  104    19      > JMPZ                                                     !1, ->49
  105    20    >   ASSIGN                                                   !2, '%3Chtml+dir%3D%22ltr%22+lang%3D%22en%22%3E%0A'
  106    21        ASSIGN_OP                                     8          !2, '%3Chead%3E%0A'
  107    22        FETCH_DIM_R                                      ~18     !1, 'title'
         23        CONCAT                                           ~19     '++%3Ctitle%3E', ~18
         24        CONCAT                                           ~20     ~19, '%3C%2Ftitle%3E'
         25        CONCAT                                           ~21     ~20, '%0A'
         26        ASSIGN_OP                                     8          !2, ~21
  108    27        ASSIGN_OP                                     8          !2, '++%3Cmeta+http-equiv%3D%22Content-Type%22+content%3D%22text%2Fhtml%3B+charset%3DUTF-8%22%3E%0A'
  109    28        ASSIGN_OP                                     8          !2, '%3C%2Fhead%3E%0A'
  110    29        ASSIGN_OP                                     8          !2, '%3Cbody%3E%0A'
  111    30        FETCH_DIM_R                                      ~26     !1, 'title'
         31        CONCAT                                           ~27     '++%3Ch1%3E', ~26
         32        CONCAT                                           ~28     ~27, '%3C%2Fh1%3E'
         33        CONCAT                                           ~29     ~28, '%0A'
         34        ASSIGN_OP                                     8          !2, ~29
  112    35        INIT_FCALL                                               'html_entity_decode'
         36        FETCH_DIM_R                                      ~31     !1, 'description'
         37        SEND_VAL                                                 ~31
         38        SEND_VAL                                                 3
         39        SEND_VAL                                                 'UTF-8'
         40        DO_ICALL                                         $32     
         41        CONCAT                                           ~33     $32, '%0A'
         42        ASSIGN_OP                                     8          !2, ~33
  113    43        ASSIGN_OP                                     8          !2, '++%3C%2Fbody%3E%0A'
  114    44        ASSIGN_OP                                     8          !2, '%3C%2Fhtml%3E%0A'
  116    45        FETCH_OBJ_R                                      ~37     'response'
         46        INIT_METHOD_CALL                                         ~37, 'setOutput'
         47        SEND_VAR_EX                                              !2
         48        DO_FCALL                                      0          
  118    49    > > RETURN                                                   null

End of function info

End of class ControllerInformationInformation.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.53 ms | 1420 KiB | 17 Q