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);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Creation of dynamic property Envato_Theme_Setup_Wizard::$oauth_script is deprecated in /in/VvXqr on line 22 Fatal error: Uncaught Error: Undefined constant "Envato_Theme_Setup_Wizard" in /in/VvXqr:28 Stack trace: #0 {main} thrown in /in/VvXqr on line 28
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
40.86 ms | 401 KiB | 8 Q