3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" <?php language_attributes(); ?>> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" <?php language_attributes(); ?>> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9" <?php language_attributes(); ?>> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" <?php language_attributes(); ?>> <!--<![endif]--> <head> <meta charset="utf-8"> <title><?php wp_title( '|', true, 'right' ); ?></title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> <link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/assets/img/favicon.ico" type="image/x-icon"> <!-- Facebook Meta --> <meta property="og:image" content="<?php the_preview_image(); ?>"> <meta property="og:title" content="<?php wp_title( t'|', true, 'right' ); ?>"> <meta property="og:description" content="<?php the_description(); ?>"> <meta property="og:url" content="<?php the_permalink(); ?>"> <meta property="og:site_name" content="<?php bloginfo('name'); ?>"> <meta property="og:type" content="blog"/> <script src="//use.typekit.net/qja1elv.js"></script> <script>try{Typekit.load();}catch(e){}</script> <?php wp_head(); ?> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/assets/css/site.css" media="screen"> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/assets/css/print.css" media="print"> </head> <body <?php body_class(); ?>> <!-- Common Header Content --> <div class="row header"> <div class="container"> <!-- Logo --> <?php if(is_front_page()) { ?> <h1> <a class="logo" href="<?php bloginfo('url'); ?>/"> <img src="<?php bloginfo('stylesheet_directory'); ?>/assets/img/logo.png" alt="<?php bloginfo('name'); ?>" /> </a> </h1> <?php }else{ ?> <h5> <a class="logo" href="<?php bloginfo('url'); ?>/"> <img src="<?php bloginfo('stylesheet_directory'); ?>/assets/img/logo.png" alt="<?php bloginfo('name'); ?>" /> </a> </h5> <?php } ?> <!-- Menu Icon (for mobile) --> <a href="#mainNav" class="menu-link icon-menu button primary"><span><span class="verbose">Menu</span></span></a> <!-- User Login/Details --> <div class="userDetails"> <?php if (!is_user_logged_in()) : ?> <a href="/login" class="button primary"> <span class="icon-lock-open">Sign In</span> </a> <a href="/register" class="button primary"> <span class="icon-user">Register</span> </a> <?php else : ?> <span class="button profile-nav"> <span class="icon-user">Welcome Back <?php echo get_user_meta(get_current_user_id(), 'first_name', true); ?></span> <nav class="profile-dropdown"> <a href="/your-profile">My Profile</a> <a href="<?php echo wp_logout_url(get_bloginfo('url')); ?>" title="Log out of this account">Log out</a> </nav><!--/profile-dropdown--> </span> <a href="/bookmarks" class="button primary my-bookmarks"> <span class="icon-lock"><span class="verbose">My </span>Bookmarks<span class="verbose"> (<span class="bookmark-count"><?php echo get_bookmark_count(); ?></span>)</span></span> </a> <?php endif; ?> </div> <!-- Main Nav --> <div class="menu" id="mainNav"> <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> </div> <!-- Search --> <?php get_template_part( 'searchform', 'top' ); ?> </div> </div>

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)
7.0.00.0030.08720.09
5.6.160.0070.08720.46
5.6.150.0100.04718.25
5.6.140.0070.08018.18
5.6.130.0130.06018.27
5.6.120.0030.09020.89
5.6.110.0170.08721.04
5.6.100.0070.06321.02
5.6.90.0100.08020.96
5.6.80.0100.06020.44
5.5.300.0130.07317.98
5.5.290.0030.04017.97
5.5.280.0070.07720.66
5.5.270.0100.08320.87
5.5.260.0130.05720.80
5.5.250.0170.08320.69
5.5.240.0070.03320.26

preferences:
142.62 ms | 1394 KiB | 7 Q