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

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.0190.00316.50
8.3.50.0130.00821.08
8.3.40.0170.00318.79
8.3.30.0090.00618.88
8.3.20.0050.00220.30
8.3.10.0080.00021.73
8.3.00.0050.00323.65
8.2.180.0130.00718.41
8.2.170.0000.01522.96
8.2.160.0100.00320.46
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00719.51
8.2.120.0040.00426.35
8.2.110.0060.00321.00
8.2.100.0040.00817.80
8.2.90.0000.00819.20
8.2.80.0080.00017.97
8.2.70.0000.00917.63
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0080.00022.14
8.2.30.0040.00419.46
8.2.20.0040.00417.68
8.2.10.0060.00317.98
8.2.00.0060.00317.98
8.1.280.0070.00725.92
8.1.270.0100.00323.83
8.1.260.0080.00028.09
8.1.250.0000.00828.09
8.1.240.0110.00022.59
8.1.230.0040.00719.15
8.1.220.0000.00717.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0080.00018.46
8.1.160.0070.00020.67
8.1.150.0040.00418.84
8.1.140.0040.00419.40
8.1.130.0030.00317.69
8.1.120.0000.00717.41
8.1.110.0090.00017.23
8.1.100.0070.00017.39
8.1.90.0040.00417.38
8.1.80.0040.00417.36
8.1.70.0000.00717.38
8.1.60.0030.00617.41
8.1.50.0040.00417.46
8.1.40.0050.00317.38
8.1.30.0120.00017.55
8.1.20.0030.00517.52
8.1.10.0000.00717.52
8.1.00.0050.00317.43
8.0.300.0000.00718.77
8.0.290.0070.00016.88
8.0.280.0030.00318.46
8.0.270.0040.00417.27
8.0.260.0000.00817.18
8.0.250.0000.00817.08
8.0.240.0000.00716.97
8.0.230.0050.00217.05
8.0.220.0080.00017.00
8.0.210.0030.00316.97
8.0.200.0030.00316.89
8.0.190.0030.00516.96
8.0.180.0050.00316.97
8.0.170.0040.00417.06
8.0.160.0040.00417.02
8.0.150.0000.00716.92
8.0.140.0080.00016.97
8.0.130.0030.00313.45
8.0.120.0050.00316.82
8.0.110.0040.00416.88
8.0.100.0040.00416.80
8.0.90.0040.00417.04
8.0.80.0100.00717.00
8.0.70.0040.00416.63
8.0.60.0000.00816.80
8.0.50.0040.00416.93
8.0.30.0080.01117.00
8.0.20.0100.01117.40
8.0.10.0040.00417.07
8.0.00.0080.01216.79
7.4.330.0000.00516.72
7.4.320.0070.00016.55
7.4.300.0000.00816.60
7.4.290.0060.00016.50
7.4.280.0060.00316.41
7.4.270.0000.00616.57
7.4.260.0070.00016.54
7.4.250.0000.00816.51
7.4.240.0030.00416.51
7.4.230.0030.00316.55
7.4.220.0110.00716.62
7.4.210.0100.01016.52
7.4.200.0040.00416.46
7.4.160.0030.01416.30
7.4.150.0110.00717.40
7.4.140.0120.01017.86
7.4.130.0070.01416.63
7.4.120.0060.01516.45
7.4.110.0070.01116.59
7.4.100.0120.00616.57
7.4.90.0100.00716.44
7.4.80.0100.01319.39
7.4.70.0070.01316.70
7.4.60.0100.00616.45
7.4.50.0060.00916.57
7.4.40.0120.00916.43
7.4.30.0110.00516.60
7.4.00.0040.01115.11
7.3.330.0030.00313.12
7.3.320.0000.00513.15
7.3.310.0070.00016.35
7.3.300.0030.00316.26
7.3.290.0070.01016.30
7.3.280.0080.01116.35
7.3.270.0090.00917.40
7.3.260.0120.00616.39
7.3.240.0100.00716.39
7.3.230.0070.01016.42
7.3.210.0000.01716.62
7.3.200.0170.00519.39
7.3.190.0110.00616.50
7.3.180.0000.01616.41
7.3.170.0100.00716.34
7.3.160.0060.00916.55
7.2.330.0070.01016.71
7.2.320.0080.01116.38
7.2.310.0070.01016.62
7.2.300.0130.00316.67
7.2.290.0100.01216.52
7.2.60.0070.00716.79
7.2.00.0000.01119.01
7.1.200.0110.00315.62
7.1.100.0160.00817.94
7.1.70.0040.00417.14
7.1.60.0060.01619.30
7.1.50.0090.01216.83
7.1.00.0030.07722.37
7.0.200.0340.00314.40
7.0.60.0170.07721.66
7.0.50.0100.06317.82
7.0.40.0030.07320.13
7.0.30.0430.05020.07
7.0.20.0330.07320.30
7.0.10.0100.03720.10
7.0.00.0100.08720.09
5.6.280.0070.04020.87
5.6.210.0100.07020.73
5.6.200.0070.07318.25
5.6.190.0200.06320.48
5.6.180.0400.06020.64
5.6.170.0270.04720.44
5.6.160.0030.06020.54
5.6.150.0000.04318.25
5.6.140.0030.04018.18
5.6.130.0030.07018.29
5.6.120.0070.04720.91
5.6.110.0130.05721.14
5.6.100.0030.07021.03
5.6.90.0030.07021.11
5.6.80.0100.07720.54
5.5.350.0200.03320.38
5.5.340.0000.04017.93
5.5.330.0030.08720.27
5.5.320.0570.06020.27
5.5.310.0230.03020.34
5.5.300.0170.07017.94
5.5.290.0030.04018.04
5.5.280.0100.04720.97
5.5.270.0100.05320.77
5.5.260.0070.07020.88
5.5.250.0130.06020.66
5.5.240.0170.07320.25

preferences:
44.41 ms | 401 KiB | 5 Q