3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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() );
based on VH5PS
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined method Envato_Theme_Setup_Wizard::get_all() in /in/pQmE7:56 Stack trace: #0 {main} thrown in /in/pQmE7 on line 56
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Call to undefined method Envato_Theme_Setup_Wizard::get_all() in /in/pQmE7 on line 56
Process exited with code 255.