3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Confirms that the activation key that is sent in an email after a user signs * up for a new blog matches the key for that user and then displays confirmation. * * @package WordPress */ define( 'WP_INSTALLING', true ); /** Sets up the WordPress Environment. */ require( dirname(__FILE__) . '/wp-load.php' ); require( dirname( __FILE__ ) . '/wp-blog-header.php' ); if ( !is_multisite() ) { wp_redirect( site_url( '/wp-login.php?action=register' ) ); die(); } if ( is_object( $wp_object_cache ) ) $wp_object_cache->cache_enabled = false; // Fix for page title $wp_query->is_404 = false; /** * Fires before the Site Activation page is loaded. * * @since 3.0.0 */ do_action( 'activate_header' ); /** * Adds an action hook specific to this page that fires on wp_head * * @since MU */ function do_activate_header() { /** * Fires before the Site Activation page is loaded, but on the wp_head action. * * @since 3.0.0 */ do_action( 'activate_wp_head' ); } add_action( 'wp_head', 'do_activate_header' ); /** * Loads styles specific to this page. * * @since MU */ function wpmu_activate_stylesheet() { ?> <style type="text/css"> form { margin-top: 2em; } #submit, #key { width: 90%; font-size: 24px; } #language { margin-top: .5em; } .error { background: #f66; } span.h3 { padding: 0 8px; font-size: 1.3em; font-family: "Lucida Grande", Verdana, Arial, "Bitstream Vera Sans", sans-serif; font-weight: bold; color: #333; } </style> <?php } add_action( 'wp_head', 'wpmu_activate_stylesheet' ); get_header(); ?> <div id="content" class="widecolumn"> <?php if ( empty($_GET['key']) && empty($_POST['key']) ) { ?> <h2><?php _e('Activation Key Required') ?></h2> <form name="activateform" id="activateform" method="post" action="<?php echo network_site_url('wp-activate.php'); ?>"> <p> <label for="key"><?php _e('Activation Key:') ?></label> <br /><input type="text" name="key" id="key" value="" size="50" /> </p> <p class="submit"> <input id="submit" type="submit" name="Submit" class="submit" value="<?php esc_attr_e('Activate') ?>" /> </p> </form> <?php } else { $key = !empty($_GET['key']) ? $_GET['key'] : $_POST['key']; $result = wpmu_activate_signup( $key ); if ( is_wp_error($result) ) { if ( 'already_active' == $result->get_error_code() || 'blog_taken' == $result->get_error_code() ) { $signup = $result->get_error_data(); ?> <h2><?php _e('Your account is now active!'); ?></h2> <?php echo '<p class="lead-in">'; if ( $signup->domain . $signup->path == '' ) { printf( __('Your account has been activated. You may now <a href="%1$s">log in</a> to the site using your chosen username of &#8220;%2$s&#8221;. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.'), network_site_url( 'wp-login.php', 'login' ), $signup->user_login, $signup->user_email, wp_lostpassword_url() ); } else { printf( __('Your site at <a href="%1$s">%2$s</a> is active. You may now log in to your site using your chosen username of &#8220;%3$s&#8221;. Please check your email inbox at %4$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%5$s">reset your password</a>.'), 'http://' . $signup->domain, $signup->domain, $signup->user_login, $signup->user_email, wp_lostpassword_url() ); } echo '</p>'; } else { ?> <h2><?php _e('An error occurred during the activation'); ?></h2> <?php echo '<p>'.$result->get_error_message().'</p>'; } } else { $url = isset( $result['blog_id'] ) ? get_blogaddress_by_id( (int) $result['blog_id'] ) : ''; $user = get_userdata( (int) $result['user_id'] ); ?> <h2><?php _e('Your account is now active!'); ?></h2> <div id="signup-welcome"> <p><span class="h3"><?php _e('Username:'); ?></span> <?php echo $user->user_login ?></p> <p><span class="h3"><?php _e('Password:'); ?></span> <?php echo $result['password']; ?></p> </div> <?php if ( $url && $url != network_home_url( '', 'http' ) ) : ?> <p class="view"><?php printf( __('Your account is now activated. <a href="%1$s">View your site</a> or <a href="%2$s">Log in</a>'), $url, $url . 'wp-login.php' ); ?></p> <?php else: ?> <p class="view"><?php printf( __('Your account is now activated. <a href="%1$s">Log in</a> or go back to the <a href="%2$s">homepage</a>.' ), network_site_url('wp-login.php', 'login'), network_home_url() ); ?></p> <?php endif; } } ?> </div> <script type="text/javascript"> var key_input = document.getElementById('key'); key_input && key_input.focus(); </script> <?php get_footer();

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.0070.01018.56
8.3.50.0130.00521.99
8.3.40.0140.00719.10
8.3.30.0070.00719.28
8.3.20.0050.00320.46
8.3.10.0030.00523.73
8.3.00.0050.00319.32
8.2.180.0070.00716.63
8.2.170.0030.01422.96
8.2.160.0130.00722.31
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0060.00320.95
8.2.110.0090.00020.93
8.2.100.0080.00318.16
8.2.90.0000.00817.91
8.2.80.0000.00817.97
8.2.70.0050.00318.03
8.2.60.0030.00618.28
8.2.50.0000.01018.10
8.2.40.0000.00819.60
8.2.30.0090.00019.41
8.2.20.0080.00017.89
8.2.10.0050.00318.26
8.2.00.0040.00417.80
8.1.280.0220.00025.92
8.1.270.0030.00618.99
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0070.00423.84
8.1.230.0110.00021.05
8.1.220.0000.00817.79
8.1.210.0070.00318.98
8.1.200.0030.00617.35
8.1.190.0000.00817.36
8.1.180.0050.00318.10
8.1.170.0060.00318.82
8.1.160.0000.00819.00
8.1.150.0000.00718.95
8.1.140.0030.00617.48
8.1.130.0000.00717.89
8.1.120.0050.00317.56
8.1.110.0030.00517.56
8.1.100.0040.00417.46
8.1.90.0000.00717.43
8.1.80.0040.00417.57
8.1.70.0030.00317.60
8.1.60.0100.00017.79
8.1.50.0000.00817.66
8.1.40.0000.00817.57
8.1.30.0030.00617.79
8.1.20.0080.00017.83
8.1.10.0030.00617.75
8.1.00.0030.00517.68
8.0.300.0000.00820.11
8.0.290.0090.00017.00
8.0.280.0000.00718.56
8.0.270.0000.00717.43
8.0.260.0030.00317.46
8.0.250.0000.00717.21
8.0.240.0070.00017.27
8.0.230.0060.00317.20
8.0.220.0050.00317.13
8.0.210.0030.00317.18
8.0.200.0040.00417.05
8.0.190.0040.00417.20
8.0.180.0040.00417.05
8.0.170.0040.00417.18
8.0.160.0000.00717.18
8.0.150.0040.00417.06
8.0.140.0080.00017.13
8.0.130.0050.00013.55
8.0.120.0070.00115.33
8.0.110.0050.00315.33
8.0.100.0040.00415.42
8.0.90.0030.00515.32
8.0.80.0060.00615.36
8.0.70.0030.00515.29
8.0.60.0020.00715.30
8.0.50.0050.00315.29
8.0.30.0060.01115.95
8.0.20.0120.00916.18
8.0.10.0040.00415.31
8.0.00.0080.00915.68
7.4.330.0020.00215.03
7.4.320.0030.00316.64
7.4.300.0030.00316.75
7.4.290.0000.00716.66
7.4.280.0050.00516.65
7.4.270.0000.00716.69
7.4.260.0040.00416.69
7.4.250.0040.00415.06
7.4.240.0040.00515.62
7.4.230.0070.00214.89
7.4.220.0060.00815.04
7.4.210.0050.01015.04
7.4.200.0000.00815.07
7.4.190.0090.00313.57
7.4.180.0070.00013.42
7.4.160.0070.00515.06
7.4.150.0080.00415.46
7.4.140.0050.00916.35
7.4.130.0100.00415.56
7.4.120.0070.00815.55
7.4.110.0050.00714.89
7.4.100.0110.00415.05
7.4.90.0100.00314.98
7.4.80.0080.00516.35
7.4.70.0100.00414.92
7.4.60.0080.00514.90
7.4.50.0040.00414.83
7.4.40.0060.00614.88
7.4.30.0090.00514.94
7.4.20.0040.00413.25
7.4.10.0060.00313.30
7.4.00.0080.00614.40
7.3.330.0000.00613.45
7.3.320.0000.00513.32
7.3.310.0040.00614.90
7.3.300.0060.00414.98
7.3.290.0080.00715.73
7.3.280.0100.00515.71
7.3.270.0080.00815.38
7.3.260.0060.00914.93
7.3.250.0100.00715.46
7.3.240.0110.00415.01
7.3.230.0130.00215.10
7.3.220.0040.00813.41
7.3.210.0140.00214.87
7.3.200.0060.00916.34
7.3.190.0090.00414.91
7.3.180.0080.00514.93
7.3.170.0070.00614.98
7.3.160.0090.00414.97
7.3.150.0000.00813.33
7.3.140.0000.00713.48
7.3.130.0000.00613.38
7.3.120.0020.01014.25
7.3.110.0010.01014.09
7.3.100.0070.00514.06
7.3.90.0030.00514.35
7.3.80.0040.00514.29
7.3.70.0040.00514.06
7.3.60.0060.00414.26
7.3.50.0060.00414.20
7.3.40.0100.00214.23
7.3.30.0010.00714.18
7.3.20.0040.00615.87
7.3.10.0080.00416.24
7.3.00.0040.00616.30
7.2.340.0090.00213.35
7.2.330.0120.00515.05
7.2.320.0090.00914.99
7.2.310.0070.01015.00
7.2.300.0060.01115.03
7.2.290.0130.00215.13
7.2.280.0060.00613.41
7.2.270.0040.00813.41
7.2.260.0090.00313.34
7.2.250.0090.00714.04
7.2.240.0080.00614.24
7.2.230.0060.00514.11
7.2.220.0060.00614.21
7.2.210.0060.00614.03
7.2.200.0050.01014.24
7.2.190.0050.00814.18
7.2.180.0060.00914.30
7.2.170.0110.00314.15
7.2.160.0120.00013.51
7.2.150.0130.00015.00
7.2.140.0090.00315.21
7.2.130.0070.00616.43
7.2.120.0060.00916.34
7.2.110.0060.00716.39
7.2.100.0060.00616.26
7.2.90.0090.00316.26
7.2.80.0080.00316.32
7.2.70.0050.00616.33
7.2.60.0090.00516.40
7.2.50.0050.00916.18
7.2.40.0060.00716.25
7.2.30.0070.00516.29
7.2.20.0090.00616.37
7.2.10.0070.00716.28
7.2.00.0050.00716.26
7.1.330.0090.00515.01
7.1.320.0040.01014.85
7.1.310.0080.00314.78
7.1.300.0080.00314.88
7.1.290.0090.00315.04
7.1.280.0060.00615.02
7.1.270.0080.00614.98
7.1.260.0050.00714.95
7.1.250.0070.00615.18
7.1.240.0120.00014.02
7.1.230.0060.00614.26
7.1.220.0090.00314.09
7.1.210.0120.00014.29
7.1.200.0080.00514.90
7.1.190.0070.00514.25
7.1.180.0090.00314.22
7.1.170.0120.00014.20
7.1.160.0080.00414.22
7.1.150.0080.00414.29
7.1.140.0120.00014.25
7.1.130.0100.00314.04
7.1.120.0060.00614.20
7.1.110.0070.00514.18
7.1.100.0080.00414.14
7.1.90.0120.00014.01
7.1.80.0110.00014.11
7.1.70.0030.00715.65
7.1.60.0080.01016.71
7.1.50.0060.01215.58
7.1.40.0070.00514.27
7.1.30.0120.00014.18
7.1.20.0120.00014.23
7.1.10.0120.00014.09
7.1.00.0090.03518.36
7.0.330.0120.00014.08
7.0.320.0110.00014.09
7.0.310.0070.00414.08
7.0.300.0110.00013.91
7.0.290.0090.00314.18
7.0.280.0080.00314.15
7.0.270.0120.00014.00
7.0.260.0110.00014.21
7.0.250.0120.00014.25
7.0.240.0090.00314.17
7.0.230.0120.00014.13
7.0.220.0060.00614.07
7.0.210.0120.00014.04
7.0.200.0030.00715.38
7.0.190.0090.00314.12
7.0.180.0090.00214.20
7.0.170.0040.00914.20
7.0.160.0040.00814.15
7.0.150.0090.00314.14
7.0.140.0080.03618.15
7.0.130.0060.00714.09
7.0.120.0130.00014.24
7.0.110.0130.01717.07
7.0.100.0130.02817.09
7.0.90.0090.03917.03
7.0.80.0080.02316.99
7.0.70.0090.03117.00
7.0.60.0050.04317.02
7.0.50.0060.04316.88
7.0.40.0130.01816.96
7.0.30.0060.02716.93
7.0.20.0090.04116.84
7.0.10.0090.02216.95
7.0.00.0050.02116.94
5.6.400.0070.00312.79
5.6.390.0070.00512.65
5.6.380.0090.00212.53
5.6.370.0070.00612.52
5.6.360.0110.00312.44
5.6.350.0130.00012.41
5.6.340.0090.00312.44
5.6.330.0090.00412.62
5.6.320.0060.00612.66
5.6.310.0110.00312.53
5.6.300.0090.00512.41
5.6.290.0130.00012.83
5.6.280.0100.03416.96
5.6.270.0110.00312.75
5.6.260.0080.01916.66
5.6.250.0050.02416.70
5.6.240.0050.04316.43
5.6.230.0130.03016.48
5.6.220.0070.02216.66
5.6.210.0140.03516.54
5.6.200.0060.02216.64
5.6.190.0070.04816.65
5.6.180.0090.03816.61
5.6.170.0090.03816.73
5.6.160.0120.01516.67
5.6.150.0030.02816.76
5.6.140.0070.02916.57
5.6.130.0090.02116.61
5.6.120.0100.02116.63
5.6.110.0120.03016.64
5.6.100.0080.04816.48
5.6.90.0080.02516.49
5.6.80.0140.02816.30
5.6.70.0080.02216.40
5.6.60.0050.02216.31
5.6.50.0050.04616.30
5.6.40.0120.03716.35
5.6.30.0080.02916.19
5.6.20.0110.03416.28
5.6.10.0110.03316.33
5.6.00.0030.02116.27
5.5.380.0080.02215.14
5.5.370.0090.02215.15
5.5.360.0130.01515.11
5.5.350.0100.01515.09
5.5.340.0070.03615.24
5.5.330.0030.03215.30
5.5.320.0100.03815.37
5.5.310.0060.02015.14
5.5.300.0080.02515.36
5.5.290.0030.02515.31
5.5.280.0070.02115.29
5.5.270.0120.03715.36
5.5.260.0110.03515.35
5.5.250.0040.04315.38
5.5.240.0090.02815.23
5.5.230.0070.02814.97
5.5.220.0080.04015.04
5.5.210.0030.02315.18
5.5.200.0060.03414.92
5.5.190.0070.03214.90
5.5.180.0040.02914.94
5.5.170.0090.00312.33
5.5.160.0060.02015.01
5.5.150.0080.03514.99
5.5.140.0070.02014.74
5.5.130.0140.01114.98
5.5.120.0060.04214.89
5.5.110.0090.01715.01
5.5.100.0070.02315.05
5.5.90.0090.02715.13
5.5.80.0060.02114.93
5.5.70.0090.01714.93
5.5.60.0090.04014.98
5.5.50.0020.04014.93
5.5.40.0040.02014.93
5.5.30.0040.03714.89
5.5.20.0030.04214.90
5.5.10.0030.02214.85
5.5.00.0070.02914.97
5.4.450.0070.03016.03
5.4.440.0080.04315.95
5.4.430.0090.02716.03
5.4.420.0040.03415.82
5.4.410.0070.03915.82
5.4.400.0040.02115.98
5.4.390.0070.02315.84
5.4.380.0070.02215.75
5.4.370.0050.03215.77
5.4.360.0120.02915.72
5.4.350.0070.03315.87
5.4.340.0060.04115.94
5.4.330.0110.00012.64
5.4.320.0050.03215.92
5.4.310.0130.02816.01
5.4.300.0030.03015.98
5.4.290.0080.03115.81
5.4.280.0070.01915.98
5.4.270.0080.02415.75
5.4.260.0060.02215.85
5.4.250.0160.03216.02
5.4.240.0090.01515.81
5.4.230.0060.03415.81
5.4.220.0060.02315.73
5.4.210.0070.03715.87
5.4.200.0080.04015.95
5.4.190.0100.01815.71
5.4.180.0040.03715.67
5.4.170.0100.03715.78
5.4.160.0100.01715.68
5.4.150.0040.02015.71
5.4.140.0100.03714.44
5.4.130.0050.02714.62
5.4.120.0040.03414.53
5.4.110.0050.02014.47
5.4.100.0170.02314.54
5.4.90.0040.03514.36
5.4.80.0070.02514.60
5.4.70.0030.03814.46
5.4.60.0070.01614.59
5.4.50.0090.03814.53
5.4.40.0030.03414.62
5.4.30.0110.01714.38
5.4.20.0040.01914.57
5.4.10.0070.02514.39
5.4.00.0020.03214.06
5.3.290.0030.02413.81
5.3.280.0030.02813.70
5.3.270.0040.03913.98
5.3.260.0050.03313.80
5.3.250.0080.03413.91
5.3.240.0100.03813.91
5.3.230.0110.03613.86
5.3.220.0070.03213.78
5.3.210.0060.02013.74
5.3.200.0070.01613.67
5.3.190.0060.03313.77
5.3.180.0110.03513.86
5.3.170.0080.03213.77
5.3.160.0140.01013.84
5.3.150.0060.02013.85
5.3.140.0070.03013.81
5.3.130.0050.02013.90
5.3.120.0120.03313.81
5.3.110.0030.03513.86
5.3.100.0060.03313.50
5.3.90.0050.03713.64
5.3.80.0040.02513.46
5.3.70.0080.02513.51
5.3.60.0070.02213.44
5.3.50.0070.03813.52
5.3.40.0060.04313.54
5.3.30.0030.02313.42
5.3.20.0040.02013.31
5.3.10.0050.03813.34
5.3.00.0070.01813.28
5.2.170.0070.02311.54
5.2.160.0020.03211.53
5.2.150.0000.01711.58
5.2.140.0060.01811.52
5.2.130.0010.03111.38
5.2.120.0060.01711.54
5.2.110.0020.01711.43
5.2.100.0030.01711.54
5.2.90.0030.01611.48
5.2.80.0060.01611.36
5.2.70.0070.03211.46
5.2.60.0030.01611.47
5.2.50.0010.03111.38
5.2.40.0080.01211.49
5.2.30.0030.03111.46
5.2.20.0050.02811.50
5.2.10.0030.01411.30
5.2.00.0030.02111.10
5.1.60.0040.01510.39
5.1.50.0020.02410.38
5.1.40.0060.01310.43
5.1.30.0030.02110.73
5.1.20.0050.01710.79
5.1.10.0030.01610.65
5.1.00.0000.01610.57
5.0.50.0050.0089.88
5.0.40.0060.0199.88
5.0.30.0020.0169.88
5.0.20.0020.0129.88
5.0.10.0030.0129.88
5.0.00.0020.0259.88
4.4.90.0020.0079.88
4.4.80.0010.0099.88
4.4.70.0020.0099.88
4.4.60.0030.0079.88
4.4.50.0000.0109.88
4.4.40.0020.0279.88
4.4.30.0070.0139.88
4.4.20.0040.0089.88
4.4.10.0020.0189.88
4.4.00.0020.0129.88
4.3.110.0020.0179.88
4.3.100.0020.0139.88
4.3.90.0040.0079.88
4.3.80.0040.0259.88
4.3.70.0020.0089.88
4.3.60.0020.0159.88
4.3.50.0020.0149.88
4.3.40.0040.0129.88
4.3.30.0000.0109.88
4.3.20.0040.0049.88
4.3.10.0020.0089.88
4.3.00.0050.0109.88

preferences:
44.77 ms | 401 KiB | 5 Q