3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Envato_Theme_Setup_Wizard { public static $_instance = null; public static $theme_name = ''; public static $envato_username = ''; public static $oauth_script = ''; 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() { self::$theme_name = 'HOBA'; self::$envato_username = 'THEMETEORY'; self::$oauth_script = 'http://themeteory.com/404.php'; } public function get_theme_name(){ return self::$theme_name; } } class OS_Envato_Theme_Setup_Wizard extends Envato_Theme_Setup_Wizard { public static $_instance = null; public static $theme_name = ''; public static $envato_username = ''; public function init_globals() { var_dump(self::$theme_name); self::theme_name == 'HOBA_EXTENDED'; var_dump(self::$theme_name); } public function get_all(){ var_dump( $wizard2::$theme_name ); var_dump( $wizard2::$envato_username ); var_dump( $wizard2::$oauth_script ); } } $wizard2 = OS_Envato_Theme_Setup_Wizard::instance(); $wizard2->get_all(); //var_dump( $wizard2::get_theme_name() );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pQmE7
function name:  (null)
number of ops:  6
compiled vars:  !0 = $wizard2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   54     0  E >   INIT_STATIC_METHOD_CALL                                  'OS_Envato_Theme_Setup_Wizard', 'instance'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
   56     3        INIT_METHOD_CALL                                         !0, 'get_all'
          4        DO_FCALL                                      0          
   58     5      > 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/pQmE7
function name:  instance
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      '_instance'
          1        TYPE_CHECK                                    2          ~0
          2      > JMPZ                                                     ~1, ->10
   12     3    >   NEW                          self                $3      
          4        DO_FCALL                                      0          
          5        ASSIGN_STATIC_PROP                                       '_instance'
          6        OP_DATA                                                  $3
   13     7        FETCH_STATIC_PROP_R          unknown             ~5      '_instance'
          8        INIT_METHOD_CALL                                         ~5, 'init_globals'
          9        DO_FCALL                                      0          
   16    10    >   FETCH_STATIC_PROP_R          unknown             ~7      '_instance'
         11      > RETURN                                                   ~7
   17    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/pQmE7
function name:  init_globals
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   ASSIGN_STATIC_PROP                                       'theme_name'
          1        OP_DATA                                                  'HOBA'
   22     2        ASSIGN_STATIC_PROP                                       'envato_username'
          3        OP_DATA                                                  'THEMETEORY'
   23     4        ASSIGN_STATIC_PROP                                       'oauth_script'
          5        OP_DATA                                                  'http%3A%2F%2Fthemeteory.com%2F404.php'
   24     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/pQmE7
function name:  get_theme_name
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      'theme_name'
          1      > RETURN                                                   ~0
   28     2*     > RETURN                                                   null

End of function get_theme_name

End of class Envato_Theme_Setup_Wizard.

Class OS_Envato_Theme_Setup_Wizard:
Function init_globals:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pQmE7
function name:  init_globals
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   39     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_STATIC_PROP_R          global lock         ~0      'theme_name'
          2        SEND_VAL                                                 ~0
          3        DO_ICALL                                                 
   41     4        FETCH_CLASS_CONSTANT                             ~2      'theme_name'
          5        IS_EQUAL                                         ~3      ~2, 'HOBA_EXTENDED'
          6        FREE                                                     ~3
   43     7        INIT_FCALL                                               'var_dump'
          8        FETCH_STATIC_PROP_R          unknown             ~4      'theme_name'
          9        SEND_VAL                                                 ~4
         10        DO_ICALL                                                 
   44    11      > RETURN                                                   null

End of function init_globals

Function get_all:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pQmE7
function name:  get_all
number of ops:  16
compiled vars:  !0 = $wizard2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   47     0  E >   INIT_FCALL                                               'var_dump'
          1        FETCH_CLASS                                   0  $1      !0
          2        FETCH_STATIC_PROP_R          global lock         ~2      'theme_name'
          3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
   48     5        INIT_FCALL                                               'var_dump'
          6        FETCH_CLASS                                   0  $4      !0
          7        FETCH_STATIC_PROP_R          unknown             ~5      'envato_username'
          8        SEND_VAL                                                 ~5
          9        DO_ICALL                                                 
   49    10        INIT_FCALL                                               'var_dump'
         11        FETCH_CLASS                                   0  $7      !0
         12        FETCH_STATIC_PROP_R          unknown             ~8      'oauth_script'
         13        SEND_VAL                                                 ~8
         14        DO_ICALL                                                 
   50    15      > RETURN                                                   null

End of function get_all

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/pQmE7
function name:  instance
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   FETCH_STATIC_PROP_R          unknown             ~0      '_instance'
          1        TYPE_CHECK                                    2          ~0
          2      > JMPZ                                                     ~1, ->10
   12     3    >   NEW                          self                $3      
          4        DO_FCALL                                      0          
          5        ASSIGN_STATIC_PROP                                       '_instance'
          6        OP_DATA                                                  $3
   13     7        FETCH_STATIC_PROP_R          unknown             ~5      '_instance'
          8        INIT_METHOD_CALL                                         ~5, 'init_globals'
          9        DO_FCALL                                      0          
   16    10    >   FETCH_STATIC_PROP_R          unknown             ~7      '_instance'
         11      > RETURN                                                   ~7
   17    12*     > RETURN                                                   null

End of function instance

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

End of function get_theme_name

End of class OS_Envato_Theme_Setup_Wizard.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.13 ms | 1404 KiB | 15 Q