3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Envato_Theme_Setup_Wizard { public static $_instance = null; public static $theme_name = ''; public static $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); //$wizard = Envato_Theme_Setup_Wizard::instance(); //var_dump( $wizard->theme_name ); //var_dump( $wizard->envato_username ); //var_dump( $wizard->oauth_script ); //var_dump(Envato_Theme_Setup_Wizard::get_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($this->theme_name); self::theme_name == 'HOBA_EXTENDED'; var_dump($this->theme_name); } } $wizard2 = OS_Envato_Theme_Setup_Wizard::instance(); var_dump( $wizard2::$theme_name ); var_dump( $wizard2::$envato_username ); var_dump( $wizard2::$oauth_script ); var_dump( $wizard2::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.0150.00616.75
8.3.50.0110.00416.40
8.3.40.0070.00718.88
8.3.30.0090.00618.87
8.3.20.0040.00420.29
8.3.10.0040.00423.48
8.3.00.0070.00323.68
8.2.180.0120.00318.67
8.2.170.0040.01222.96
8.2.160.0100.00320.43
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00019.77
8.2.120.0040.00426.35
8.2.110.0060.00320.54
8.2.100.0040.00817.97
8.2.90.0000.00819.09
8.2.80.0040.00417.97
8.2.70.0060.00317.38
8.2.60.0000.00817.80
8.2.50.0040.00418.07
8.2.40.0030.00522.15
8.2.30.0040.00419.42
8.2.20.0080.00017.84
8.2.10.0030.00618.11
8.2.00.0000.00818.11
8.1.280.0060.00825.92
8.1.270.0100.00723.97
8.1.260.0040.00428.09
8.1.250.0080.00028.09
8.1.240.0030.00622.06
8.1.230.0090.00317.52
8.1.220.0060.00317.74
8.1.210.0090.00018.77
8.1.200.0040.00417.35
8.1.190.0000.00817.23
8.1.180.0030.00518.10
8.1.170.0050.00518.41
8.1.160.0040.00420.66
8.1.150.0040.00418.77
8.1.140.0080.00019.66
8.1.130.0040.00417.62
8.1.120.0040.00417.48
8.1.110.0000.00817.33
8.1.100.0000.00717.39
8.1.90.0000.00817.48
8.1.80.0040.00417.38
8.1.70.0000.00717.46
8.1.60.0000.00717.51
8.1.50.0040.00417.58
8.1.40.0030.00617.43
8.1.30.0000.01117.69
8.1.20.0000.00817.67
8.1.10.0000.00717.64
8.1.00.0000.00717.56
8.0.300.0040.00418.77
8.0.290.0060.00316.63
8.0.280.0070.00018.33
8.0.270.0030.00317.30
8.0.260.0000.00717.23
8.0.250.0040.00416.91
8.0.240.0030.00316.89
8.0.230.0000.00717.02
8.0.220.0000.00716.81
8.0.210.0070.00016.90
8.0.200.0040.00416.89
8.0.190.0030.00517.05
8.0.180.0060.00316.95
8.0.170.0030.00616.96
8.0.160.0030.00516.84
8.0.150.0040.00416.79
8.0.140.0040.00416.80
8.0.130.0050.00013.35
8.0.120.0000.00816.82
8.0.110.0000.00716.82
8.0.100.0040.00416.96
8.0.90.0080.00016.96
8.0.80.0110.00716.89
8.0.70.0030.00616.82
8.0.60.0000.00716.82
8.0.50.0050.00216.83
8.0.30.0100.00617.27
8.0.20.0080.01217.42
8.0.10.0030.00516.85
8.0.00.0090.01216.81
7.4.330.0050.00016.68
7.4.320.0000.00616.42
7.4.300.0030.00516.55
7.4.290.0070.00016.63
7.4.280.0070.00316.65
7.4.270.0030.00316.48
7.4.260.0030.00316.67
7.4.250.0000.00716.54
7.4.240.0050.00216.59
7.4.230.0000.00716.67
7.4.220.0140.00416.59
7.4.210.0090.01216.54
7.4.200.0000.00716.74
7.4.160.0060.01616.73
7.4.150.0130.00417.40
7.4.140.0140.00717.86
7.4.130.0140.00616.47
7.4.120.0100.00916.51
7.4.110.0090.00916.57
7.4.100.0170.00016.53
7.4.90.0070.01016.48
7.4.80.0080.01219.39
7.4.70.0160.00016.56
7.4.60.0100.00916.63
7.4.50.0070.00516.63
7.4.40.0090.00616.59
7.4.30.0130.00416.73
7.4.00.0090.00614.74
7.3.330.0050.00013.43
7.3.320.0050.00013.31
7.3.310.0060.00016.33
7.3.300.0030.00316.45
7.3.290.0120.00516.47
7.3.280.0130.00616.50
7.3.270.0090.00917.40
7.3.260.0070.01016.53
7.3.250.0100.00816.41
7.3.240.0100.01016.44
7.3.230.0130.00416.43
7.3.210.0120.00416.43
7.3.200.0080.01119.39
7.3.190.0060.01016.52
7.3.180.0090.00716.47
7.3.170.0150.00616.58
7.3.160.0030.01316.40
7.3.10.0000.01116.64
7.3.00.0110.00416.70
7.2.330.0140.00616.77
7.2.320.0060.01216.74
7.2.310.0130.00716.71
7.2.300.0120.00616.81
7.2.290.0090.00816.87
7.2.130.0080.00416.96
7.2.120.0030.00616.61
7.2.110.0120.00016.96
7.2.100.0060.00617.04
7.2.90.0000.01417.03
7.2.80.0040.00717.04
7.2.70.0000.01316.99
7.2.60.0080.00717.03
7.2.50.0060.00616.80
7.2.40.0070.00716.81
7.2.30.0040.01217.08
7.2.20.0030.00916.91
7.2.10.0100.00016.81
7.2.00.0070.00618.27
7.1.250.0070.01115.47
7.1.200.0040.00815.57
7.1.100.0080.01118.25
7.1.70.0040.00417.16
7.1.60.0100.01419.30
7.1.50.0000.01916.83
7.1.00.0000.08022.45
7.0.200.0030.00616.55
7.0.60.0230.07721.87
7.0.50.0030.08017.88
7.0.40.0000.05020.26
7.0.30.0170.04320.16
7.0.20.0200.05020.15
7.0.10.0100.03720.06
7.0.00.0030.09020.22
5.6.280.0030.03321.05
5.6.210.0030.08320.48
5.6.200.0030.04718.22
5.6.190.0130.07720.54
5.6.180.0500.07020.61
5.6.170.0230.07720.44
5.6.160.0000.09020.57
5.6.150.0100.08018.23
5.6.140.0030.04018.28
5.6.130.0100.07718.15
5.6.120.0030.07720.99
5.6.110.0070.08320.98
5.6.100.0070.06021.03
5.6.90.0070.04020.99
5.6.80.0070.08020.38
5.5.350.0100.03320.39
5.5.340.0030.03717.96
5.5.330.0030.04320.57
5.5.320.0530.06720.29
5.5.310.0130.04020.27
5.5.300.0170.07317.94
5.5.290.0030.04018.02
5.5.280.0100.08020.88
5.5.270.0070.04020.88
5.5.260.0030.07320.85
5.5.250.0070.07720.69
5.5.240.0170.07320.17

preferences:
50.8 ms | 401 KiB | 5 Q