3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Controller_Portfolio extends Controller { function __construct() { $this->model = new Model_Portfolio(); $this->view = new View(); } function action_index() { $data = $this->model->get_data(); $this->view->generate('portfolio_view.php', 'template_view.php', $data); } } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AWJrU
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                            'controller_portfolio', 'controller'
   17     1      > RETURN                                                   1

Class Controller_Portfolio:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AWJrU
function name:  __construct
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $1      'Model_Portfolio'
          1        DO_FCALL                                      0          
          2        ASSIGN_OBJ                                               'model'
          3        OP_DATA                                                  $1
    8     4        NEW                                              $4      'View'
          5        DO_FCALL                                      0          
          6        ASSIGN_OBJ                                               'view'
          7        OP_DATA                                                  $4
    9     8      > RETURN                                                   null

End of function __construct

Function action_index:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AWJrU
function name:  action_index
number of ops:  11
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   FETCH_OBJ_R                                      ~1      'model'
          1        INIT_METHOD_CALL                                         ~1, 'get_data'
          2        DO_FCALL                                      0  $2      
          3        ASSIGN                                                   !0, $2
   14     4        FETCH_OBJ_R                                      ~4      'view'
          5        INIT_METHOD_CALL                                         ~4, 'generate'
          6        SEND_VAL_EX                                              'portfolio_view.php'
          7        SEND_VAL_EX                                              'template_view.php'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
   15    10      > RETURN                                                   null

End of function action_index

End of class Controller_Portfolio.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
205.91 ms | 1395 KiB | 13 Q