3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Web extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('banner_homepage_model', 'obj_banner', TRUE); $this->load->model('categories_model', 'obj_categories', TRUE); $this->load->model('pages_model', 'obj_pages', TRUE); $this->load->model('page_model', 'obj_pages', TRUE); $this->load->model('product_model', 'obj_product', TRUE); $lang_var = $this->session->userdata('lang'); if ($lang_var == "fr" || $lang_var == "") $this->lang->load('general', 'fr'); else $this->lang->load('general', 'en'); } public function index() { $data = array(); $limit = 3; $data['banner'] = $this->obj_banner->get_all($condition = array(), 'banner_display_order'); $data['categories'] = $this->obj_categories->get_all($condition = array(), 'categories_display_order'); $condition = array(); $data['banner'] = $this->obj_banner->get_all($condition, 'banner_display_order'); $data['categories'] = $this->obj_categories->get_all_entries($row = 0, $limit, $condition, 'categories_display_order', 'asc'); $condition1 = array('parent_id' => 2); $data['our_vision'] = $this->obj_pages->get_all($condition1); $this->load->view('web/index', $data); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L8GrF
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                            'web', 'ci_controller'
   28     1      > RETURN                                                   1

Class Web:
Function __construct:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 39, Position 2 = 41
Branch analysis from position: 39
2 jumps found. (Code = 43) Position 1 = 42, Position 2 = 48
Branch analysis from position: 42
1 jumps found. (Code = 42) Position 1 = 53
Branch analysis from position: 53
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
filename:       /in/L8GrF
function name:  __construct
number of ops:  54
compiled vars:  !0 = $lang_var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_STATIC_METHOD_CALL                                  
          1        DO_FCALL                                      0          
    5     2        FETCH_OBJ_R                                      ~2      'load'
          3        INIT_METHOD_CALL                                         ~2, 'model'
          4        SEND_VAL_EX                                              'banner_homepage_model'
          5        SEND_VAL_EX                                              'obj_banner'
          6        SEND_VAL_EX                                              <true>
          7        DO_FCALL                                      0          
    6     8        FETCH_OBJ_R                                      ~4      'load'
          9        INIT_METHOD_CALL                                         ~4, 'model'
         10        SEND_VAL_EX                                              'categories_model'
         11        SEND_VAL_EX                                              'obj_categories'
         12        SEND_VAL_EX                                              <true>
         13        DO_FCALL                                      0          
    7    14        FETCH_OBJ_R                                      ~6      'load'
         15        INIT_METHOD_CALL                                         ~6, 'model'
         16        SEND_VAL_EX                                              'pages_model'
         17        SEND_VAL_EX                                              'obj_pages'
         18        SEND_VAL_EX                                              <true>
         19        DO_FCALL                                      0          
    8    20        FETCH_OBJ_R                                      ~8      'load'
         21        INIT_METHOD_CALL                                         ~8, 'model'
         22        SEND_VAL_EX                                              'page_model'
         23        SEND_VAL_EX                                              'obj_pages'
         24        SEND_VAL_EX                                              <true>
         25        DO_FCALL                                      0          
    9    26        FETCH_OBJ_R                                      ~10     'load'
         27        INIT_METHOD_CALL                                         ~10, 'model'
         28        SEND_VAL_EX                                              'product_model'
         29        SEND_VAL_EX                                              'obj_product'
         30        SEND_VAL_EX                                              <true>
         31        DO_FCALL                                      0          
   10    32        FETCH_OBJ_R                                      ~12     'session'
         33        INIT_METHOD_CALL                                         ~12, 'userdata'
         34        SEND_VAL_EX                                              'lang'
         35        DO_FCALL                                      0  $13     
         36        ASSIGN                                                   !0, $13
   11    37        IS_EQUAL                                         ~15     !0, 'fr'
         38      > JMPNZ_EX                                         ~15     ~15, ->41
         39    >   IS_EQUAL                                         ~16     !0, ''
         40        BOOL                                             ~15     ~16
         41    > > JMPZ                                                     ~15, ->48
   12    42    >   FETCH_OBJ_R                                      ~17     'lang'
         43        INIT_METHOD_CALL                                         ~17, 'load'
         44        SEND_VAL_EX                                              'general'
         45        SEND_VAL_EX                                              'fr'
         46        DO_FCALL                                      0          
         47      > JMP                                                      ->53
   14    48    >   FETCH_OBJ_R                                      ~19     'lang'
         49        INIT_METHOD_CALL                                         ~19, 'load'
         50        SEND_VAL_EX                                              'general'
         51        SEND_VAL_EX                                              'en'
         52        DO_FCALL                                      0          
   15    53    > > RETURN                                                   null

End of function __construct

Function index:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L8GrF
function name:  index
number of ops:  50
compiled vars:  !0 = $data, !1 = $limit, !2 = $condition, !3 = $row, !4 = $condition1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   ASSIGN                                                   !0, <array>
   18     1        ASSIGN                                                   !1, 3
   19     2        FETCH_OBJ_R                                      ~8      'obj_banner'
          3        INIT_METHOD_CALL                                         ~8, 'get_all'
          4        ASSIGN                                           ~9      !2, <array>
          5        SEND_VAL_EX                                              ~9
          6        SEND_VAL_EX                                              'banner_display_order'
          7        DO_FCALL                                      0  $10     
          8        ASSIGN_DIM                                               !0, 'banner'
          9        OP_DATA                                                  $10
   20    10        FETCH_OBJ_R                                      ~12     'obj_categories'
         11        INIT_METHOD_CALL                                         ~12, 'get_all'
         12        ASSIGN                                           ~13     !2, <array>
         13        SEND_VAL_EX                                              ~13
         14        SEND_VAL_EX                                              'categories_display_order'
         15        DO_FCALL                                      0  $14     
         16        ASSIGN_DIM                                               !0, 'categories'
         17        OP_DATA                                                  $14
   21    18        ASSIGN                                                   !2, <array>
   22    19        FETCH_OBJ_R                                      ~17     'obj_banner'
         20        INIT_METHOD_CALL                                         ~17, 'get_all'
         21        SEND_VAR_EX                                              !2
         22        SEND_VAL_EX                                              'banner_display_order'
         23        DO_FCALL                                      0  $18     
         24        ASSIGN_DIM                                               !0, 'banner'
         25        OP_DATA                                                  $18
   23    26        FETCH_OBJ_R                                      ~20     'obj_categories'
         27        INIT_METHOD_CALL                                         ~20, 'get_all_entries'
         28        ASSIGN                                           ~21     !3, 0
         29        SEND_VAL_EX                                              ~21
         30        SEND_VAR_EX                                              !1
         31        SEND_VAR_EX                                              !2
         32        SEND_VAL_EX                                              'categories_display_order'
         33        SEND_VAL_EX                                              'asc'
         34        DO_FCALL                                      0  $22     
         35        ASSIGN_DIM                                               !0, 'categories'
         36        OP_DATA                                                  $22
   24    37        ASSIGN                                                   !4, <array>
   25    38        FETCH_OBJ_R                                      ~25     'obj_pages'
         39        INIT_METHOD_CALL                                         ~25, 'get_all'
         40        SEND_VAR_EX                                              !4
         41        DO_FCALL                                      0  $26     
         42        ASSIGN_DIM                                               !0, 'our_vision'
         43        OP_DATA                                                  $26
   26    44        FETCH_OBJ_R                                      ~27     'load'
         45        INIT_METHOD_CALL                                         ~27, 'view'
         46        SEND_VAL_EX                                              'web%2Findex'
         47        SEND_VAR_EX                                              !0
         48        DO_FCALL                                      0          
   27    49      > RETURN                                                   null

End of function index

End of class Web.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.39 ms | 1403 KiB | 13 Q