3v4l.org

run code in 300+ PHP versions simultaneously
<?php class RestRequest { public function __construct() { $this->setResourceURIBase(); } protected function setResourceURIBase() { $siteUrl = SugarConfig::get(); } } class SugarConfig { var $_cached_values = array(); function get() { if (!isset($this->_cached_values)) { return 'ok'; } return $this->_cached_values; } } $obj = new RestRequest();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C0hvY
function name:  (null)
number of ops:  4
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   NEW                                              $1      'RestRequest'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
          3      > RETURN                                                   1

Class RestRequest:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C0hvY
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_METHOD_CALL                                         'setResourceURIBase'
          1        DO_FCALL                                      0          
    6     2      > RETURN                                                   null

End of function __construct

Function setresourceuribase:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C0hvY
function name:  setResourceURIBase
number of ops:  4
compiled vars:  !0 = $siteUrl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_STATIC_METHOD_CALL                                  'SugarConfig', 'get'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
   10     3      > RETURN                                                   null

End of function setresourceuribase

End of class RestRequest.

Class SugarConfig:
Function get:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C0hvY
function name:  get
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ISSET_ISEMPTY_PROP_OBJ                           ~0      '_cached_values'
          1        BOOL_NOT                                         ~1      ~0
          2      > JMPZ                                                     ~1, ->4
   17     3    > > RETURN                                                   'ok'
   19     4    >   FETCH_OBJ_R                                      ~2      '_cached_values'
          5      > RETURN                                                   ~2
   20     6*     > RETURN                                                   null

End of function get

End of class SugarConfig.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.36 ms | 1386 KiB | 13 Q