3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Envato_Theme_Setup_Wizard { private static $_instance = null; private $theme_name = ''; private $envato_username = ''; public static function instance() { if ( is_null( self::$_instance ) ) { self::$_instance = new self(); self::$_instance->init_globals(); //self::$_instance->init_actions(); } return self::$_instance; } public function init_globals() { $this->theme_name = 'HOBA'; $this->envato_username = 'THEMETEORY'; $this->oauth_script = 'http://themeteory.com/404.php'; } public function get_theme_name(){ return $this->theme_name; } } //var_dump(Envato_Theme_Setup_Wizard::get_theme_name); $wizard = Envato_Theme_Setup_Wizard::instance(); var_dump( $wizard->get_theme_name() ); //var_dump(Envato_Theme_Setup_Wizard::get_theme_name);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/312GT
function name:  (null)
number of ops:  9
compiled vars:  !0 = $wizard
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E >   INIT_STATIC_METHOD_CALL                                  'Envato_Theme_Setup_Wizard', 'instance'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
   33     3        INIT_FCALL                                               'var_dump'
          4        INIT_METHOD_CALL                                         !0, 'get_theme_name'
          5        DO_FCALL                                      0  $3      
          6        SEND_VAR                                                 $3
          7        DO_ICALL                                                 
   35     8      > RETURN                                                   1

Class Envato_Theme_Setup_Wizard:
Function instance:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/312GT
function name:  instance
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      '_instance'
          1        TYPE_CHECK                                    2          ~0
          2      > JMPZ                                                     ~1, ->10
   11     3    >   NEW                          self                $3      
          4        DO_FCALL                                      0          
          5        ASSIGN_STATIC_PROP                                       '_instance'
          6        OP_DATA                                                  $3
   12     7        FETCH_STATIC_PROP_R          unknown             ~5      '_instance'
          8        INIT_METHOD_CALL                                         ~5, 'init_globals'
          9        DO_FCALL                                      0          
   15    10    >   FETCH_STATIC_PROP_R          unknown             ~7      '_instance'
         11      > RETURN                                                   ~7
   16    12*     > RETURN                                                   null

End of function instance

Function init_globals:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/312GT
function name:  init_globals
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   ASSIGN_OBJ                                               'theme_name'
          1        OP_DATA                                                  'HOBA'
   21     2        ASSIGN_OBJ                                               'envato_username'
          3        OP_DATA                                                  'THEMETEORY'
   22     4        ASSIGN_OBJ                                               'oauth_script'
          5        OP_DATA                                                  'http%3A%2F%2Fthemeteory.com%2F404.php'
   23     6      > RETURN                                                   null

End of function init_globals

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

End of function get_theme_name

End of class Envato_Theme_Setup_Wizard.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.51 ms | 1400 KiB | 15 Q