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);

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.70.0100.01018.68
8.3.60.0140.00716.88
8.3.50.0070.01521.97
8.3.40.0110.00318.82
8.3.30.0120.00318.79
8.3.20.0070.00020.18
8.3.10.0070.00021.64
8.3.00.0040.00423.30
8.2.190.0000.01416.67
8.2.180.0070.01418.29
8.2.170.0140.00722.96
8.2.160.0070.00720.52
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00319.64
8.2.120.0080.00026.35
8.2.110.0070.00322.12
8.2.100.0030.00618.89
8.1.280.0140.00325.92
8.1.270.0120.00323.88
8.1.260.0040.00428.09
8.1.250.0060.00328.09
8.1.240.0090.00018.62
8.1.230.0090.00018.49
7.0.10.0070.04020.06
7.0.00.0100.07720.32
5.6.160.0070.04020.44
5.6.150.0170.07018.14
5.6.140.0030.03718.16
5.6.130.0070.09018.17
5.6.120.0030.04320.99
5.6.110.0000.08321.00
5.6.100.0100.06321.14
5.6.90.0070.04320.88
5.6.80.0100.05020.38
5.5.300.0130.07317.99
5.5.290.0000.04318.08
5.5.280.0030.05320.78
5.5.270.0030.09020.88
5.5.260.0070.08020.85
5.5.250.0070.06720.62
5.5.240.0130.07320.13

preferences:
38.92 ms | 401 KiB | 5 Q