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); Envato_Theme_Setup_Wizard::instance(); var_dump(Envato_Theme_Setup_Wizard::get_theme_name);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0140.00716.63
8.3.50.0100.01016.19
8.3.40.0070.01418.71
8.3.30.0090.00618.79
8.3.20.0070.00020.16
8.3.10.0080.00021.69
8.3.00.0000.00723.65
8.2.180.0160.00625.92
8.2.170.0150.00618.91
8.2.160.0070.00722.96
8.2.150.0070.00025.66
8.2.140.0030.00724.66
8.2.130.0040.00426.16
8.2.120.0160.00320.94
8.2.110.0040.00419.23
8.1.280.0040.01125.92
8.1.270.0050.00324.66
8.1.260.0070.00026.35
8.1.250.0090.00628.09
8.1.240.0000.00819.14
7.0.10.0030.04320.24
7.0.00.0100.05020.24
5.6.160.0000.08320.71
5.6.150.0070.07718.29
5.6.140.0030.04018.16
5.6.130.0030.04318.23
5.6.120.0070.08721.02
5.6.110.0070.09021.05
5.6.100.0100.07721.15
5.6.90.0030.08321.11
5.6.80.0130.06720.39
5.5.300.0100.04717.95
5.5.290.0100.03317.99
5.5.280.0070.08320.99
5.5.270.0200.06720.77
5.5.260.0070.08020.90
5.5.250.0070.07720.71
5.5.240.0070.07720.25

preferences:
37.42 ms | 401 KiB | 5 Q