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 $oauth_script = ''; 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() { self::$theme_name = 'HOBA'; self::$envato_username = 'THEMETEORY'; self::$oauth_script = 'http://themeteory.com/404.php'; } public function get_theme_name(){ return self::$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(self::$theme_name); self::theme_name == 'HOBA_EXTENDED'; var_dump(self::$theme_name); } public function get_all(){ var_dump( $wizard2::$theme_name ); var_dump( $wizard2::$envato_username ); var_dump( $wizard2::$oauth_script ); } } $wizard2 = OS_Envato_Theme_Setup_Wizard::instance(); $wizard2::get_all(); //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.0100.00716.63
8.3.50.0290.00521.15
8.3.40.0070.01119.01
8.3.30.0000.01418.68
8.3.20.0040.00420.16
8.3.10.0050.00323.61
8.3.00.0060.00323.60
8.2.180.0070.00716.63
8.2.170.0060.00922.96
8.2.160.0110.00420.39
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0000.00819.73
8.2.120.0070.00026.35
8.2.110.0030.00621.03
8.2.100.0120.00017.85
8.2.90.0050.00317.97
8.2.80.0040.00417.97
8.2.70.0090.00317.25
8.2.60.0030.00618.04
8.2.50.0070.00318.07
8.2.40.0040.00422.15
8.2.30.0040.00419.38
8.2.20.0040.00417.58
8.2.10.0030.00717.94
8.2.00.0090.00018.07
8.1.280.0070.00725.92
8.1.270.0120.00623.92
8.1.260.0040.00428.09
8.1.250.0050.00228.09
8.1.240.0060.00322.17
8.1.230.0040.00820.95
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0060.00317.25
8.1.180.0030.00518.10
8.1.170.0080.00018.36
8.1.160.0040.00420.78
8.1.150.0040.00418.80
8.1.140.0030.00619.53
8.1.130.0040.00417.57
8.1.120.0070.00017.46
8.1.110.0000.00717.33
8.1.100.0000.00817.36
8.1.90.0040.00417.37
8.1.80.0040.00417.43
8.1.70.0050.00317.40
8.1.60.0000.00917.59
8.1.50.0060.00317.48
8.1.40.0040.00417.57
8.1.30.0030.00617.64
8.1.20.0000.00817.57
8.1.10.0000.00717.47
8.1.00.0040.00417.51
8.0.300.0000.00720.06
8.0.290.0000.00716.63
8.0.280.0000.00718.31
8.0.270.0040.00417.14
8.0.260.0030.00317.25
8.0.250.0030.00316.98
8.0.240.0030.00316.87
8.0.230.0000.00716.85
8.0.220.0040.00416.91
8.0.210.0080.00016.76
8.0.200.0030.00316.88
8.0.190.0050.00316.95
8.0.180.0110.00016.95
8.0.170.0030.00516.84
8.0.160.0000.00816.93
8.0.150.0050.00216.86
8.0.140.0020.00516.76
8.0.130.0000.00613.38
8.0.120.0000.00916.89
8.0.110.0000.00716.89
8.0.100.0000.00816.89
8.0.90.0040.00416.97
8.0.80.0130.00316.91
8.0.70.0000.00916.74
8.0.60.0000.00716.73
8.0.50.0030.00316.91
8.0.30.0110.00817.13
8.0.20.0110.00817.42
8.0.10.0000.00716.83
8.0.00.0130.00716.64
7.4.330.0020.00216.83
7.4.320.0060.00016.56
7.4.300.0000.00716.43
7.4.290.0070.00016.63
7.4.280.0050.00316.59
7.4.270.0030.00316.59
7.4.260.0040.00416.55
7.4.250.0040.00416.38
7.4.240.0000.00716.49
7.4.230.0070.00016.50
7.4.220.0110.00816.63
7.4.210.0040.01116.53
7.4.200.0030.00316.71
7.4.160.0130.00316.48
7.4.150.0030.01417.40
7.4.140.0160.00617.86
7.4.130.0160.00316.33
7.4.120.0080.01116.57
7.4.110.0130.00916.50
7.4.100.0040.01716.42
7.4.90.0130.00716.32
7.4.80.0100.01019.39
7.4.70.0040.01716.40
7.4.60.0100.00716.51
7.4.50.0030.01316.49
7.4.40.0060.00916.52
7.4.30.0060.00916.34
7.4.00.0030.01015.07
7.3.330.0000.00613.31
7.3.320.0060.00013.37
7.3.310.0030.00316.30
7.3.300.0020.00516.32
7.3.290.0070.01016.43
7.3.280.0080.01016.46
7.3.270.0140.01017.40
7.3.260.0130.00316.49
7.3.240.0110.01316.48
7.3.230.0040.01416.49
7.3.210.0060.01016.50
7.3.200.0120.00619.39
7.3.190.0070.01316.36
7.3.180.0130.01016.38
7.3.170.0090.00916.44
7.3.160.0080.00816.36
7.3.10.0070.00916.50
7.3.00.0070.00816.45
7.2.330.0150.01416.52
7.2.320.0090.00916.70
7.2.310.0140.00816.39
7.2.300.0070.01316.52
7.2.290.0110.00716.48
7.2.130.0120.00816.75
7.2.120.0100.00516.71
7.2.110.0080.00816.85
7.2.100.0090.00716.69
7.2.90.0100.00816.64
7.2.80.0040.01116.56
7.2.70.0110.01116.90
7.2.60.0080.00816.59
7.2.50.0090.00916.86
7.2.40.0080.01016.29
7.2.30.0110.00716.31
7.2.20.0080.00916.43
7.2.10.0090.00916.88
7.2.00.0080.01117.65
7.1.250.0050.01015.54
7.1.200.0040.00815.77
7.1.70.0050.00517.32
7.1.60.0040.00717.35
7.1.50.0100.01016.96
7.1.00.0070.07322.40
7.0.200.0030.01316.80
7.0.60.0230.05021.62
7.0.50.0030.08317.98
7.0.40.0100.04020.24
7.0.30.0130.04320.24
7.0.20.0200.07320.12
7.0.10.0030.04320.07
7.0.00.0130.07720.33
5.6.280.0030.03021.14
5.6.210.0070.07320.78
5.6.200.0170.07718.17
5.6.190.0100.08020.34
5.6.180.0530.04720.39
5.6.170.0400.05020.47
5.6.160.0070.04020.71
5.6.150.0100.07718.27
5.6.140.0000.05718.27
5.6.130.0030.04718.14
5.6.120.0000.07020.98
5.6.110.0170.07321.00
5.6.100.0170.08020.96
5.6.90.0030.04721.01
5.6.80.0100.06020.39
5.5.350.0030.04020.38
5.5.340.0130.02717.97
5.5.330.0170.07320.41
5.5.320.0500.07320.31
5.5.310.0270.05320.32
5.5.300.0070.06317.95
5.5.290.0030.04017.98
5.5.280.0030.05720.79
5.5.270.0030.05320.69
5.5.260.0100.08320.81
5.5.250.0000.09020.72
5.5.240.0100.07320.20

preferences:
24.77 ms | 401 KiB | 5 Q