3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
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.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
44.59 ms | 401 KiB | 8 Q