3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Envato_Theme_Setup_Wizard { public static $_instance = null; public $theme_name = ''; public $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 $theme_name = ''; public $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.40.0100.00718.96
8.3.30.0070.00718.83
8.3.20.0000.00820.38
8.3.10.0080.00023.66
8.3.00.0050.00323.39
8.2.170.0090.00622.96
8.2.160.0080.00520.35
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00019.76
8.2.120.0040.00426.35
8.2.110.0030.00620.33
8.2.100.0030.01017.91
8.2.90.0060.00319.08
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0000.00817.93
8.2.50.0000.00818.07
8.2.40.0000.00822.30
8.2.30.0000.00719.48
8.2.20.0080.00017.72
8.2.10.0030.00917.92
8.2.00.0040.00418.09
8.1.270.0090.00023.82
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0080.00022.14
8.1.230.0070.00417.46
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0030.00717.23
8.1.190.0030.00517.22
8.1.180.0030.00618.10
8.1.170.0080.00018.56
8.1.160.0000.00720.82
8.1.150.0040.00418.79
8.1.140.0050.00319.46
8.1.130.0000.00717.56
8.1.120.0070.00017.42
8.1.110.0030.00617.45
8.1.100.0020.00517.31
8.1.90.0040.00417.39
8.1.80.0040.00417.45
8.1.70.0000.00717.44
8.1.60.0030.00617.50
8.1.50.0000.00817.47
8.1.40.0030.00517.47
8.1.30.0040.00717.64
8.1.20.0040.00417.61
8.1.10.0000.00717.61
8.1.00.0000.00817.40
8.0.300.0040.00418.77
8.0.290.0040.00416.88
8.0.280.0030.00318.42
8.0.270.0030.00317.19
8.0.260.0030.00317.10
8.0.250.0000.00716.97
8.0.240.0000.00717.06
8.0.230.0030.00316.90
8.0.220.0070.00016.88
8.0.210.0070.00016.86
8.0.200.0030.00316.88
8.0.190.0000.00717.03
8.0.180.0000.01116.85
8.0.170.0040.00416.83
8.0.160.0050.00316.84
8.0.150.0040.00416.90
8.0.140.0080.00016.89
8.0.130.0050.00013.37
8.0.120.0030.00516.93
8.0.110.0000.00716.93
8.0.100.0040.00416.75
8.0.90.0040.00416.92
8.0.80.0110.00616.86
8.0.70.0060.00316.88
8.0.60.0070.00016.88
8.0.50.0000.00716.96
8.0.30.0080.01117.17
8.0.20.0110.00717.40
8.0.10.0050.00316.97
8.0.00.0120.00816.78
7.4.330.0030.00316.73
7.4.320.0030.00316.49
7.4.300.0030.00316.48
7.4.290.0040.00416.66
7.4.280.0050.00516.59
7.4.270.0030.00316.60
7.4.260.0040.00416.43
7.4.250.0030.00416.43
7.4.240.0000.00716.60
7.4.230.0050.00216.45
7.4.220.0070.01116.50
7.4.210.0070.00716.74
7.4.200.0020.00516.65
7.4.160.0080.00816.68
7.4.150.0120.00617.40
7.4.140.0100.01017.86
7.4.130.0170.01016.75
7.4.120.0090.00916.42
7.4.110.0060.01216.66
7.4.100.0140.00716.45
7.4.90.0080.00916.58
7.4.80.0120.00619.39
7.4.70.0060.00916.59
7.4.60.0120.00416.49
7.4.50.0030.01316.37
7.4.40.0060.00916.63
7.4.30.0100.01016.71
7.4.10.0070.01115.03
7.4.00.0120.00514.91
7.3.330.0030.00313.51
7.3.320.0000.00513.44
7.3.310.0030.00316.43
7.3.300.0070.00016.48
7.3.290.0070.01216.42
7.3.280.0090.01016.43
7.3.270.0090.00917.40
7.3.260.0120.00416.42
7.3.240.0090.00916.50
7.3.230.0180.00016.39
7.3.210.0110.00616.39
7.3.200.0090.01219.39
7.3.190.0050.01216.49
7.3.180.0060.01116.35
7.3.170.0040.01216.45
7.3.160.0090.00916.65
7.3.130.0000.01914.82
7.3.120.0110.00714.57
7.3.110.0100.01014.64
7.3.100.0060.00614.84
7.3.90.0040.01214.89
7.3.80.0040.00814.91
7.3.70.0030.01014.92
7.3.60.0030.00914.95
7.3.50.0110.00414.49
7.3.40.0040.00714.88
7.3.30.0030.00614.87
7.3.20.0060.00616.45
7.3.10.0030.00716.36
7.3.00.0070.00416.65
7.2.330.0160.00316.72
7.2.320.0060.01216.78
7.2.310.0130.01016.51
7.2.300.0200.00016.55
7.2.290.0040.01516.63
7.2.260.0090.00914.78
7.2.250.0080.00815.11
7.2.240.0070.00714.87
7.2.230.0090.00615.03
7.2.220.0080.01114.58
7.2.210.0000.00814.79
7.2.200.0060.00914.94
7.2.190.0070.00715.20
7.2.180.0000.01314.91
7.2.170.0000.01315.10
7.2.160.0070.00315.00
7.2.150.0030.01016.94
7.2.140.0070.00716.97
7.2.130.0060.00316.76
7.2.120.0030.00916.96
7.2.110.0100.00416.78
7.2.100.0080.00816.75
7.2.90.0100.00416.90
7.2.80.0020.01416.72
7.2.70.0210.00516.94
7.2.60.0080.00916.90
7.2.50.0110.00916.85
7.2.40.0190.00816.99
7.2.30.0090.00916.78
7.2.20.0130.00716.86
7.2.10.0200.00916.78
7.2.00.0080.00817.67
7.1.330.0000.01115.67
7.1.320.0040.00815.83
7.1.310.0000.01215.67
7.1.300.0060.00915.84
7.1.290.0000.01215.77
7.1.280.0040.00715.75
7.1.270.0040.00715.87
7.1.260.0000.01515.74
7.1.250.0050.00515.72
7.1.240.0000.01415.66
7.1.230.0060.00715.70
7.1.220.0090.00415.70
7.1.210.0080.00415.84
7.1.200.0050.00815.71
7.1.190.0070.00715.53
7.1.180.0070.00615.72
7.1.170.0150.00815.74
7.1.160.0100.00715.77
7.1.150.0060.00815.81
7.1.140.0080.00515.61
7.1.130.0090.00715.68
7.1.120.0070.00815.79
7.1.110.0110.00515.71
7.1.100.0100.00516.37
7.1.90.0150.00315.62
7.1.80.0120.00515.71
7.1.70.0090.00616.27
7.1.60.0140.00916.99
7.1.50.0130.00916.21
7.1.40.0160.00615.79
7.1.30.0160.00515.56
7.1.20.0160.00815.58
7.1.10.0100.00715.60
7.1.00.0100.02717.92
7.0.330.0000.01015.50
7.0.320.0030.01015.31
7.0.310.0230.00215.26
7.0.300.0100.00315.39
7.0.290.0090.00615.32
7.0.280.0040.00815.47
7.0.270.0050.01015.40
7.0.260.0210.00715.44
7.0.250.0110.00315.28
7.0.240.0090.00615.51
7.0.230.0110.01015.56
7.0.220.0120.01015.49
7.0.210.0140.00515.35
7.0.200.0080.00715.74
7.0.190.0070.00915.29
7.0.180.0090.01015.47
7.0.170.0110.00815.42
7.0.160.0110.01015.45
7.0.150.0100.00715.29
7.0.140.0060.00815.31
7.0.130.0070.00815.41
7.0.120.0140.00715.47
7.0.110.0110.00915.54
7.0.100.0110.00715.38
7.0.90.0180.00315.50
7.0.80.0150.00615.44
7.0.70.0120.00515.31
7.0.60.0130.03217.45
7.0.50.0100.02616.34
7.0.40.0080.02315.67
7.0.30.0120.01915.55
7.0.20.0140.01915.63
7.0.10.0110.01615.72
7.0.00.0060.02715.61
5.6.400.0000.01414.69
5.6.390.0030.00914.05
5.6.380.0070.00714.28
5.6.370.0090.00614.28
5.6.360.0080.00714.27
5.6.350.0040.00914.42
5.6.340.0080.00614.54
5.6.330.0090.00714.43
5.6.320.0070.00814.52
5.6.310.0110.00814.47
5.6.300.0100.00414.21
5.6.290.0120.00414.42
5.6.280.0110.01916.66
5.6.270.0110.00314.41
5.6.260.0110.00214.47
5.6.250.0090.00614.42
5.6.240.0130.00314.39
5.6.230.0060.00914.38
5.6.220.0120.00414.46
5.6.210.0100.01616.48
5.6.200.0040.02215.65
5.6.190.0090.03316.37
5.6.180.0220.02716.46
5.6.170.0120.03616.46
5.6.160.0110.02916.37
5.6.150.0110.02615.68
5.6.140.0090.01515.76
5.6.130.0080.02615.67
5.6.120.0090.03116.58
5.6.110.0150.02816.47
5.6.100.0060.02816.51
5.6.90.0070.02816.57
5.6.80.0030.03416.30
5.6.70.0020.01014.20
5.6.60.0120.00214.37
5.6.50.0100.00714.23
5.6.40.0060.00614.39
5.6.30.0110.00714.09
5.6.20.0080.00714.26
5.6.10.0090.00814.27
5.6.00.0180.00314.33
5.5.380.0100.00512.78
5.5.370.0060.00612.69
5.5.360.0080.00612.73
5.5.350.0090.01515.27
5.5.340.0040.01514.54
5.5.330.0050.02315.24
5.5.320.0100.02015.41
5.5.310.0180.01615.28
5.5.300.0090.02114.66
5.5.290.0080.01514.46
5.5.280.0060.03115.46
5.5.270.0050.03415.49
5.5.260.0080.03115.47
5.5.250.0050.02815.46
5.5.240.0080.03015.24
5.5.230.0080.00512.74
5.5.220.0070.00612.59
5.5.210.0020.00612.63
5.5.200.0060.00312.77
5.5.190.0080.00112.45
5.5.180.0120.00312.72
5.5.170.0110.00814.09
5.5.160.0100.00312.60
5.5.150.0060.00612.44
5.5.140.0090.00412.75
5.5.130.0080.00312.55
5.5.120.0040.00712.84
5.5.110.0090.00312.74
5.5.100.0120.00612.68
5.5.90.0040.00812.67
5.5.80.0040.01012.93
5.5.70.0100.00712.78
5.5.60.0050.00812.73
5.5.50.0000.00912.61
5.5.40.0080.00512.73
5.5.30.0050.00612.63
5.5.20.0050.00812.77
5.5.10.0060.00312.85
5.5.00.0000.01212.81

preferences:
47.89 ms | 400 KiB | 5 Q