3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /** * @package WordPress * @subpackage Default_Theme */ get_header(); ?> <div id="content" class="narrowcolumn" role="main"> <?php if (have_posts()) : ?> <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> <?php /* If this is a category archive */ if (is_category()) { ?> <h1 id="archive_title"><?php printf( __('Archive for the &#8216;<span>%1$s</span>&#8217; Category', 'canoe-default'), single_cat_title('', false) ); ?></h1> <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?> <h1 id="archive_title"><?php printf( __('Posts Tagged &#8216;<span>%1$s</span>&#8217;', 'canoe-default'), single_tag_title('', false) ); ?></h1> <?php /* If this is a daily archive */ } elseif (is_day()) { ?> <h1 id="archive_title"><?php printf( __('Archive for %1$s', 'canoe-default'), get_the_time(__('F jS, Y', 'canoe-default')) ); ?></h1> <?php /* If this is a monthly archive */ } elseif (is_month()) { ?> <h1 id="archive_title"><?php printf( __('Archive for %1$s', 'canoe-default'), get_the_time(__('F, Y', 'canoe-default')) ); ?></h1> <?php /* If this is a yearly archive */ } elseif (is_year()) { ?> <h1 id="archive_title"><?php printf( __('Archive for %1$s', 'canoe-default'), get_the_time(__('Y', 'canoe-default')) ); ?></h1> <?php /* If this is an author archive */ } elseif (is_author()) { ?> <h1 id="archive_title"><?php _e('Author Archive', 'canoe-default'); ?></h1> <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?> <h1 id="archive_title"><?php _e('Blog Archives', 'canoe-default'); ?></h1> <?php } ?> <?php while (have_posts()) : the_post(); $count_post++; ?> <? if( $count_post==1 && is_author() && $description = get_the_author_meta( "description", $post->post_author) ) : ?> <div id="archive-biography"> <h2><? _e('About', 'canoe-default'); ?> &#8216;<span><?= get_the_author_meta( "display_name", $post->post_author) ?></span>&#8217;</h2> <p><?= $description ?></p> </div> <? endif ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <? display_custom_thumb(); ?> <h2><a href="<? the_permalink() ?>" rel="bookmark" title="<? the_title_attribute(); ?>"><? the_title(); ?></a></h2> <? display_custom_author() ?> <div class="entry"> <?php the_content(__('Read more...', 'canoe-default')); ?> <p class="postmetadata"><?php the_tags('Tags: ', ', ', '<br />'); ?> <?php _e('Categories: ', 'canoe-default'); ?><?php the_category(', ') ?> | <?php edit_post_link(__('Edit', 'canoe-default'), '', ' | '); ?> <?php comments_popup_link(__('No comments', 'canoe-default'), __('1 comment', 'canoe-default'), __('% comments', 'canoe-default'), 'comments_link', __('Comments off', 'canoe-default')); ?></p> </div> </div> <?php endwhile; ?> <div class="navigation navigation_posts"> <div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries', 'canoe-default')) ?></div> <div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;', 'canoe-default')) ?></div> </div> <?php else : _e('Sorry, no posts matched your criteria.', 'canoe-default'); get_search_form(); endif; ?> </div> <?php get_sidebar(); ?> <?php get_footer();
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function get_header() in /in/gK8OO:7 Stack trace: #0 {main} thrown in /in/gK8OO on line 7
Process exited with code 255.
Output for hhvm-3.12.0
Fatal error: Uncaught Error: Call to undefined function get_header() in /in/gK8OO:7 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.0.0 - 5.6.28, hhvm-3.10.0
Fatal error: Call to undefined function get_header() in /in/gK8OO on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: get_header() in /in/gK8OO on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: get_header() in /in/gK8OO on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: get_header() in /in/gK8OO on line 7