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'; } } Envato_Theme_Setup_Wizard::instance(); var_dump(Envato_Theme_Setup_Wizard->theme_name);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VvXqr
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   INIT_STATIC_METHOD_CALL                                  'Envato_Theme_Setup_Wizard', 'instance'
          1        DO_FCALL                                      0          
   28     2        INIT_FCALL                                               'var_dump'
          3        FETCH_CONSTANT                                   ~1      'Envato_Theme_Setup_Wizard'
          4        FETCH_OBJ_R                                      ~2      ~1, 'theme_name'
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                                 
          7      > 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/VvXqr
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/VvXqr
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

End of class Envato_Theme_Setup_Wizard.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.64 ms | 1396 KiB | 15 Q