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.60.0000.02116.88
8.3.50.0100.01021.28
8.3.40.0070.00718.76
8.3.30.0040.01119.02
8.3.20.0000.00720.39
8.3.10.0000.00823.66
8.3.00.0040.00423.61
8.2.180.0110.00718.29
8.2.170.0150.00022.96
8.2.160.0110.00420.35
8.2.150.0000.00824.18
8.2.140.0070.00024.66
8.2.130.0080.00019.83
8.2.120.0000.00826.35
8.2.110.0190.00320.89
8.2.100.0040.00817.84
8.2.90.0030.00619.05
8.2.80.0040.00417.97
8.2.70.0030.00717.75
8.2.60.0000.00817.93
8.2.50.0030.00518.07
8.2.40.0040.00422.14
8.2.30.0000.00719.48
8.2.20.0000.00817.70
8.2.10.0090.00018.09
8.2.00.0000.00818.05
8.1.280.0120.00625.92
8.1.270.0070.01123.84
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0060.00321.14
8.1.230.0090.00317.42
8.1.220.0070.00017.74
8.1.210.0050.00318.77
8.1.200.0000.00917.48
8.1.190.0070.00017.35
8.1.180.0040.00418.10
8.1.170.0080.00018.64
8.1.160.0040.00420.81
8.1.150.0000.00718.84
8.1.140.0060.00319.65
8.1.130.0000.00717.65
8.1.120.0050.00317.41
8.1.110.0000.00817.39
8.1.100.0040.00417.36
8.1.90.0040.00417.38
8.1.80.0040.00417.44
8.1.70.0070.00017.49
8.1.60.0000.00917.61
8.1.50.0030.00517.45
8.1.40.0080.00017.55
8.1.30.0080.00317.69
8.1.20.0000.00717.59
8.1.10.0020.00517.59
8.1.00.0000.00717.59
8.0.300.0040.00418.77
8.0.290.0100.00016.75
8.0.280.0030.00318.59
8.0.270.0040.00417.21
8.0.260.0000.00817.29
8.0.250.0030.00317.02
8.0.240.0050.00317.13
8.0.230.0000.00717.09
8.0.220.0030.00316.90
8.0.210.0040.00416.98
8.0.200.0000.00617.05
8.0.190.0000.00717.05
8.0.180.0000.00917.01
8.0.170.0090.00017.04
8.0.160.0040.00417.04
8.0.150.0050.00317.02
8.0.140.0040.00416.96
8.0.130.0000.00613.38
8.0.120.0000.00816.99
8.0.110.0020.00517.01
8.0.100.0080.00016.88
8.0.90.0000.00816.99
8.0.80.0060.01316.93
8.0.70.0030.00516.88
8.0.60.0000.00816.91
8.0.50.0040.00417.11
8.0.30.0120.00816.99
8.0.20.0070.01217.40
8.0.10.0040.00417.13
8.0.00.0090.01316.94
7.4.330.0050.00016.75
7.4.320.0030.00316.53
7.4.300.0030.00516.65
7.4.290.0000.00716.59
7.4.280.0060.00316.54
7.4.270.0000.00716.59
7.4.260.0000.00716.67
7.4.250.0000.00816.46
7.4.240.0020.00516.57
7.4.230.0000.00716.75
7.4.220.0090.01616.59
7.4.210.0060.00916.73
7.4.200.0080.00016.56
7.4.160.0030.01316.48
7.4.150.0090.00917.40
7.4.140.0110.01217.86
7.4.130.0060.01216.53
7.4.120.0110.00816.67
7.4.110.0100.00716.51
7.4.100.0100.00716.59
7.4.90.0160.00016.73
7.4.80.0130.01019.39
7.4.70.0100.00716.50
7.4.60.0090.00616.63
7.4.50.0090.00616.70
7.4.40.0000.01616.62
7.4.30.0030.01316.41
7.4.10.0070.01015.21
7.4.00.0090.00714.81
7.3.330.0030.00313.44
7.3.320.0050.00013.46
7.3.310.0000.00616.33
7.3.300.0030.00316.40
7.3.290.0090.00816.43
7.3.280.0080.00916.45
7.3.270.0090.00917.40
7.3.260.0060.01716.58
7.3.240.0080.01016.39
7.3.230.0130.00316.54
7.3.210.0100.00616.73
7.3.200.0060.01619.39
7.3.190.0060.01216.47
7.3.180.0060.00916.49
7.3.170.0070.01416.50
7.3.160.0000.01616.59
7.3.130.0060.01214.88
7.3.120.0000.01415.06
7.3.110.0080.01214.81
7.3.100.0110.00414.88
7.3.90.0060.00915.03
7.3.80.0030.00615.02
7.3.70.0040.01214.86
7.3.60.0070.00714.83
7.3.50.0060.01214.80
7.3.40.0080.00414.95
7.3.30.0070.00714.61
7.3.20.0110.00316.68
7.3.10.0080.00416.68
7.3.00.0050.00616.50
7.2.330.0090.01316.79
7.2.320.0100.00716.74
7.2.310.0120.00416.74
7.2.300.0070.01416.79
7.2.290.0100.01016.59
7.2.260.0030.01514.92
7.2.250.0000.01515.23
7.2.240.0090.00615.00
7.2.230.0000.01314.90
7.2.220.0000.01114.78
7.2.210.0030.01314.97
7.2.200.0040.00715.27
7.2.190.0060.00314.83
7.2.180.0060.00615.09
7.2.170.0060.01015.04
7.2.160.0100.00715.18
7.2.150.0060.00616.59
7.2.140.0140.00016.82
7.2.130.0060.00816.86
7.2.120.0100.00316.96
7.2.110.0050.00817.06
7.2.100.0070.00616.98
7.2.90.0070.00717.07
7.2.80.0060.00916.95
7.2.70.0060.00916.90
7.2.60.0100.00516.92
7.2.50.0050.00817.07
7.2.40.0030.01317.03
7.2.30.0040.01017.11
7.2.20.0080.00617.01
7.2.10.0070.00917.03
7.2.00.0070.00917.81
7.1.330.0060.00615.86
7.1.320.0090.00615.79
7.1.310.0000.01015.76
7.1.300.0000.01415.77
7.1.290.0060.00615.70
7.1.280.0040.01115.74
7.1.270.0000.01115.77
7.1.260.0070.00715.68
7.1.250.0050.00815.66
7.1.240.0060.00515.78
7.1.230.0020.01115.71
7.1.220.0050.00815.66
7.1.210.0050.00715.74
7.1.200.0050.00715.82
7.1.190.0020.01215.77
7.1.180.0030.00815.97
7.1.170.0040.00915.68
7.1.160.0040.01115.72
7.1.150.0040.00615.72
7.1.140.0090.00715.60
7.1.130.0060.00915.81
7.1.120.0080.00515.67
7.1.110.0070.00615.57
7.1.100.0070.00716.43
7.1.90.0080.00815.76
7.1.80.0080.00615.69
7.1.70.0050.00616.18
7.1.60.0070.01016.97
7.1.50.0050.01116.17
7.1.40.0060.00715.67
7.1.30.0020.00815.75
7.1.20.0070.00515.77
7.1.10.0070.00715.73
7.1.00.0040.02717.90
7.0.330.0050.00815.25
7.0.320.0080.00315.47
7.0.310.0070.00715.37
7.0.300.0090.00315.42
7.0.290.0030.00915.35
7.0.280.0050.00715.27
7.0.270.0060.00815.45
7.0.260.0040.00815.43
7.0.250.0070.00615.56
7.0.240.0060.00815.23
7.0.230.0090.00415.30
7.0.220.0090.00615.46
7.0.210.0030.00915.46
7.0.200.0040.00715.85
7.0.190.0020.01015.48
7.0.180.0030.01015.33
7.0.170.0000.01215.36
7.0.160.0030.00615.40
7.0.150.0010.01015.51
7.0.140.0070.00715.45
7.0.130.0030.00915.33
7.0.120.0050.00715.38
7.0.110.0000.00915.47
7.0.100.0020.00715.48
7.0.90.0060.00915.37
7.0.80.0070.00515.26
7.0.70.0020.01015.25
7.0.60.0080.03217.35
7.0.50.0050.03116.21
7.0.40.0040.02915.81
7.0.30.0160.02015.70
7.0.20.0100.02615.69
7.0.10.0040.01915.69
7.0.00.0040.03715.76
5.6.400.0060.00614.34
5.6.390.0030.00614.31
5.6.380.0030.01114.58
5.6.370.0080.00614.49
5.6.360.0080.00514.28
5.6.350.0100.00314.54
5.6.340.0040.00914.35
5.6.330.0050.00914.29
5.6.320.0030.00914.31
5.6.310.0040.00714.63
5.6.300.0050.00814.42
5.6.290.0020.01014.39
5.6.280.0030.02116.62
5.6.270.0050.01014.43
5.6.260.0040.00614.49
5.6.250.0030.00714.45
5.6.240.0070.00714.24
5.6.230.0090.00614.33
5.6.220.0050.00814.26
5.6.210.0030.03016.37
5.6.200.0040.03315.58
5.6.190.0070.01816.60
5.6.180.0240.02516.50
5.6.170.0130.03016.34
5.6.160.0030.02416.40
5.6.150.0070.01915.68
5.6.140.0040.01815.70
5.6.130.0060.02015.64
5.6.120.0060.02816.77
5.6.110.0080.02816.38
5.6.100.0050.03716.60
5.6.90.0090.02616.55
5.6.80.0060.03216.21
5.6.70.0050.00814.50
5.6.60.0020.01114.51
5.6.50.0060.00814.15
5.6.40.0050.00814.23
5.6.30.0040.01114.13
5.6.20.0100.00314.27
5.6.10.0070.00414.32
5.6.00.0100.00514.22
5.5.380.0050.00512.66
5.5.370.0040.00612.86
5.5.360.0020.01212.70
5.5.350.0070.02215.29
5.5.340.0030.01814.37
5.5.330.0090.02715.19
5.5.320.0270.01915.29
5.5.310.0120.01215.29
5.5.300.0070.01914.54
5.5.290.0040.01814.46
5.5.280.0080.02415.53
5.5.270.0060.03415.37
5.5.260.0040.03415.42
5.5.250.0030.03015.25
5.5.240.0080.03115.17
5.5.230.0040.00912.62
5.5.220.0050.00512.63
5.5.210.0060.00812.61
5.5.200.0060.00312.63
5.5.190.0050.00712.75
5.5.180.0050.00612.75
5.5.170.0030.00812.80
5.5.160.0050.00812.77
5.5.150.0060.00712.66
5.5.140.0080.00612.63
5.5.130.0070.00412.77
5.5.120.0040.00512.75
5.5.110.0030.00712.67
5.5.100.0080.00512.67
5.5.90.0020.01312.68
5.5.80.0070.00512.58
5.5.70.0030.00912.76
5.5.60.0060.00312.72
5.5.50.0050.00912.70
5.5.40.0040.01112.75
5.5.30.0020.01112.71
5.5.20.0060.00712.48
5.5.10.0070.00512.78
5.5.00.0030.00912.62

preferences:
47.91 ms | 401 KiB | 5 Q