3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Zend_Application_Resource_View { protected $_view; protected $_class = 'Zend_View'; public function __construct($options = null) { if (isset($options['class'])) { $this->_class = $options['class']; unset($options['class']); } $viewClass = $this->_class; $this->_view = new $viewClass($options); } public function setHeadTitle($options) { } public function getView() { return $this->_view; } } class Test_View { public function __construct($x) { var_dump($x); } } new Zend_Application_Resource_View(array(1,2,3));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yd7PO
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   32     0  E >   NEW                                              $0      'Zend_Application_Resource_View'
          1        SEND_VAL_EX                                              <array>
          2        DO_FCALL                                      0          
          3        FREE                                                     $0
          4      > RETURN                                                   1

Class Zend_Application_Resource_View:
Function __construct:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/Yd7PO
function name:  __construct
number of ops:  16
compiled vars:  !0 = $options, !1 = $viewClass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV_INIT                                        !0      null
    9     1        ISSET_ISEMPTY_DIM_OBJ                         0          !0, 'class'
          2      > JMPZ                                                     ~2, ->7
   10     3    >   FETCH_DIM_R                                      ~4      !0, 'class'
          4        ASSIGN_OBJ                                               '_class'
          5        OP_DATA                                                  ~4
   11     6        UNSET_DIM                                                !0, 'class'
   14     7    >   FETCH_OBJ_R                                      ~5      '_class'
          8        ASSIGN                                                   !1, ~5
   15     9        FETCH_CLASS                                   0  $8      !1
         10        NEW                                              $9      $8
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0          
         13        ASSIGN_OBJ                                               '_view'
         14        OP_DATA                                                  $9
   16    15      > RETURN                                                   null

End of function __construct

Function setheadtitle:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yd7PO
function name:  setHeadTitle
number of ops:  2
compiled vars:  !0 = $options
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   RECV                                             !0      
   21     1      > RETURN                                                   null

End of function setheadtitle

Function getview:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yd7PO
function name:  getView
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   FETCH_OBJ_R                                      ~0      '_view'
          1      > RETURN                                                   ~0
   26     2*     > RETURN                                                   null

End of function getview

End of class Zend_Application_Resource_View.

Class Test_View:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yd7PO
function name:  __construct
number of ops:  5
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   RECV                                             !0      
          1        INIT_FCALL                                               'var_dump'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
          4      > RETURN                                                   null

End of function __construct

End of class Test_View.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.57 ms | 1400 KiB | 15 Q