3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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);
based on nZr83

Here you find the average performance (time & memory) of each version. A greyed out version indicates it didn't complete successfully (based on exit-code).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
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
5.4.450.0230.05019.59
5.4.440.0200.05319.43
5.4.430.0530.05319.20
5.4.420.0530.05019.16
5.4.410.0500.05319.41
5.4.400.0600.05018.88
5.4.390.0630.07018.85
5.4.380.0500.06718.85
5.4.370.0500.06319.13
5.4.360.0600.05018.84
5.4.350.0500.06019.28
5.4.340.0500.05319.28
5.4.320.0430.06018.85
5.4.310.0530.04719.16
5.4.300.0600.05319.16
5.4.290.0470.05319.11
5.4.280.0470.05319.13
5.4.270.0570.05018.84
5.4.260.0430.05319.26
5.4.250.0530.05319.16
5.4.240.0300.05019.12
5.4.230.0200.04319.03
5.4.220.0470.05319.16
5.4.210.0400.05319.04
5.4.200.0470.05019.25
5.4.190.0430.05319.09
5.4.180.0430.05319.12
5.4.170.0500.04719.15
5.4.160.0330.05719.11
5.4.150.0070.05719.11
5.4.140.0430.05316.41
5.4.130.0430.04316.25
5.4.120.0470.05316.41
5.4.110.0500.04716.32
5.3.290.0470.05314.70
5.3.280.0200.05314.59
5.3.270.0400.05714.68
5.3.260.0530.04314.62
5.3.250.0130.04714.59
5.3.240.0400.05714.62
5.3.230.0370.05714.61
5.3.220.0500.06014.65
5.3.210.0370.06014.72