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(); public static 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/3IOK5
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/3IOK5
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/3IOK5
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 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3IOK5
function name:  get
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   FETCH_THIS                                       $0      
          1        ISSET_ISEMPTY_PROP_OBJ                           ~1      $0, '_cached_values'
          2        BOOL_NOT                                         ~2      ~1
          3      > JMPZ                                                     ~2, ->5
   17     4    > > RETURN                                                   'ok'
   19     5    >   FETCH_THIS                                       $3      
          6        FETCH_OBJ_R                                      ~4      $3, '_cached_values'
          7      > RETURN                                                   ~4
   20     8*     > RETURN                                                   null

End of function get

End of class SugarConfig.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.82 ms | 1386 KiB | 13 Q