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();

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.0040.01118.43
8.3.50.0210.01121.20
8.3.40.0150.00018.82
8.3.30.0090.00620.25
8.3.20.0000.00820.53
8.3.10.0000.00820.94
8.3.00.0070.00023.48
8.2.180.0170.01016.88
8.2.170.0110.00322.96
8.2.160.0070.00720.59
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0050.00320.99
8.2.110.0060.00319.43
8.2.100.0070.00417.91
8.2.90.0080.00019.14
8.2.80.0050.00318.05
8.2.70.0100.00017.88
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0030.00518.34
8.2.30.0040.00419.48
8.2.20.0040.00417.77
8.2.10.0040.00417.84
8.2.00.0090.00017.84
8.1.280.0090.00625.92
8.1.270.0000.00823.99
8.1.260.0070.00026.35
8.1.250.0050.00228.09
8.1.240.0040.00422.28
8.1.230.0080.00421.08
8.1.220.0000.00818.77
8.1.210.0070.00419.16
8.1.200.0090.00317.36
8.1.190.0070.00017.53
8.1.180.0000.00818.10
8.1.170.0060.00318.59
8.1.160.0040.00418.80
8.1.150.0040.00418.65
8.1.140.0000.00817.49
8.1.130.0000.00817.86
8.1.120.0040.00417.45
8.1.110.0050.00217.35
8.1.100.0040.00417.43
8.1.90.0080.00017.50
8.1.80.0050.00317.34
8.1.70.0000.00817.32
8.1.60.0000.00817.56
8.1.50.0030.00517.49
8.1.40.0100.00017.45
8.1.30.0040.00417.58
8.1.20.0050.00317.52
8.1.10.0000.00817.48
8.1.00.0050.00217.53
8.0.300.0030.00720.01
8.0.290.0000.00717.29
8.0.280.0000.00718.34
8.0.270.0000.00817.31
8.0.260.0030.00316.83
8.0.250.0050.00317.09
8.0.240.0000.00717.06
8.0.230.0080.00017.04
8.0.220.0030.00316.93
8.0.210.0000.00716.93
8.0.200.0030.00316.98
8.0.190.0040.00416.95
8.0.180.0050.00317.08
8.0.170.0070.00016.98
8.0.160.0000.00716.85
8.0.150.0000.00817.04
8.0.140.0000.00817.00
8.0.130.0050.00013.31
8.0.120.0040.00417.00
8.0.110.0000.00717.09
8.0.100.0040.00417.06
8.0.90.0040.00416.82
8.0.80.0220.00016.98
8.0.70.0050.00316.80
8.0.60.0000.00716.82
8.0.50.0050.00316.82
8.0.30.0110.00917.18
8.0.20.0080.01017.40
8.0.10.0000.00816.92
8.0.00.0090.01116.82
7.4.330.0000.00615.04
7.4.320.0070.00016.63
7.4.300.0000.00616.55
7.4.290.0030.00316.57
7.4.280.0070.00016.55
7.4.270.0030.00316.50
7.4.260.0000.00513.32
7.4.250.0000.00716.52
7.4.240.0030.00316.50
7.4.230.0000.00716.67
7.4.220.0040.01516.68
7.4.210.0060.01016.66
7.4.200.0000.00716.54
7.4.190.0040.00416.62
7.4.160.0070.01716.48
7.4.150.0120.00617.40
7.4.140.0110.00617.86
7.4.130.0100.01016.51
7.4.120.0100.01016.64
7.4.110.0060.01316.66
7.4.100.0120.00916.54
7.4.90.0070.01116.71
7.4.80.0110.01119.39
7.4.70.0030.01516.63
7.4.60.0130.00316.64
7.4.50.0000.00816.61
7.4.40.0030.01322.77
7.4.30.0150.00316.79
7.4.00.0060.00614.91
7.3.330.0030.00313.12
7.3.320.0000.00513.22
7.3.310.0040.00416.51
7.3.300.0050.00216.38
7.3.290.0120.00416.43
7.3.280.0070.00816.43
7.3.270.0060.01217.40
7.3.260.0070.01218.24
7.3.250.0090.01216.50
7.3.240.0170.00716.66
7.3.230.0110.00916.64
7.3.210.0090.00916.36
7.3.200.0130.01019.39
7.3.190.0210.00016.56
7.3.180.0190.00316.32
7.3.170.0070.01116.36
7.3.160.0030.01316.55
7.3.120.0070.01114.97
7.2.330.0120.00616.34
7.2.320.0030.01416.71
7.2.310.0120.01216.61
7.2.300.0180.00616.59
7.2.290.0080.00816.60
7.2.60.0030.01016.86
7.2.00.0030.00918.94
7.1.200.0030.00615.48
7.1.100.0050.00518.16
7.1.70.0000.01216.98
7.1.60.0000.02519.17
7.1.50.0070.01416.83
7.1.00.0070.04722.30
7.0.200.0040.00416.34
7.0.140.0030.07322.20
7.0.100.0100.07720.11
7.0.90.0030.07320.14
7.0.80.0270.08019.98
7.0.70.0330.04019.99
7.0.60.0030.06320.11
7.0.50.0270.04320.45
7.0.40.0170.04320.05
7.0.30.0070.04020.11
7.0.20.0070.04020.11
7.0.10.0070.04020.09
7.0.00.0070.04320.13
5.6.280.0030.07321.06
5.6.250.0070.08020.82
5.6.240.0070.07320.59
5.6.230.0000.05720.65
5.6.220.0030.06020.72
5.6.210.0100.08020.79
5.6.200.0030.06321.07
5.6.190.0100.05021.16
5.6.180.0100.04021.07
5.6.170.0030.04321.01
5.6.160.0030.04321.13
5.6.150.0130.03321.05
5.6.140.0270.02721.16
5.6.130.0070.04021.22
5.6.120.0030.04321.00
5.6.110.0030.03721.07
5.6.100.0030.04320.98
5.6.90.0030.04721.04
5.6.80.0030.04020.36
5.6.70.0100.03320.44
5.6.60.0170.03720.42
5.6.50.0030.04320.44
5.6.40.0030.04020.46
5.6.30.0070.03720.32
5.6.20.0030.04320.57
5.6.10.0070.03720.53
5.6.00.0070.04020.46
5.5.380.0070.05720.47
5.5.370.0030.08320.50
5.5.360.0030.05320.46
5.5.350.0030.07020.46
5.5.340.0130.07320.94
5.5.330.0030.04320.93
5.5.320.0170.04020.88
5.5.310.0070.04020.75
5.5.300.0030.04320.80
5.5.290.0100.03720.96
5.5.280.0100.03720.82
5.5.270.0030.04020.80
5.5.260.0070.08320.95
5.5.250.0030.04020.59
5.5.240.0030.03320.20
5.5.230.0030.03320.29
5.5.220.0000.04020.17
5.5.210.0070.04320.32
5.5.200.0030.03320.04
5.5.190.0000.04320.25
5.5.180.0100.04020.33
5.5.160.0030.03320.20
5.5.150.0070.03020.31
5.5.140.0030.04020.17
5.5.130.0070.03720.32
5.5.120.0000.04320.32
5.5.110.0030.03320.27
5.5.100.0070.04320.06
5.5.90.0100.04020.19
5.5.80.0070.03019.99
5.5.70.0000.03720.20
5.5.60.0070.03019.98
5.5.50.0070.03720.17
5.5.40.0100.03320.07
5.5.30.0070.03320.00
5.5.20.0030.06020.18
5.5.10.0130.06720.17
5.5.00.0100.03720.09
5.4.450.0030.04319.23
5.4.440.0070.03719.30
5.4.430.0070.03719.13
5.4.420.0100.02719.13
5.4.410.0070.03319.14
5.4.400.0070.03319.03
5.4.390.0000.04019.03
5.4.380.0000.04018.90
5.4.370.0100.04719.05
5.4.360.0030.03719.04
5.4.350.0030.04718.80
5.4.340.0070.03019.10
5.4.320.0070.03718.92
5.4.310.0000.03719.14
5.4.300.0000.03319.04
5.4.290.0070.03719.23
5.4.280.0030.04319.04
5.4.270.0000.04019.23
5.4.260.0000.03319.12
5.4.250.0030.03319.02
5.4.240.0030.03319.02
5.4.230.0070.03718.90
5.4.220.0070.03718.89
5.4.210.0030.04018.96
5.4.200.0030.05719.22
5.4.190.0100.04018.95
5.4.180.0070.07318.95
5.4.170.0030.05019.21
5.4.160.0100.07318.98
5.4.150.0170.03719.07
5.4.140.0030.07016.38
5.4.130.0070.03316.41
5.4.120.0100.06316.41
5.4.110.0130.04016.47
5.4.100.0100.04016.49
5.4.90.0100.04716.26
5.4.80.0000.04016.35
5.4.70.0030.05016.44
5.4.60.0100.07316.34
5.4.50.0070.05016.46
5.4.40.0100.07016.45
5.4.30.0100.07016.23
5.4.20.0130.05016.33
5.4.10.0030.07316.35
5.4.00.0030.07715.77
5.3.290.0030.03714.65
5.3.280.0000.03714.59
5.3.270.0030.07014.61
5.3.260.0070.04714.59
5.3.250.0100.04714.62
5.3.240.0000.06714.49
5.3.230.0170.07714.54
5.3.220.0030.04714.59
5.3.210.0130.07014.57
5.3.200.0070.06014.42
5.3.190.0130.07314.50
5.3.180.0030.07714.53
5.3.170.0030.07014.45
5.3.160.0100.08014.58
5.3.150.0030.08314.55
5.3.140.0130.05714.42
5.3.130.0000.05014.48
5.3.120.0070.05314.40
5.3.110.0070.05014.56
5.3.100.0070.03713.94
5.3.90.0000.04013.88
5.3.80.0000.08313.90
5.3.70.0030.05713.99
5.3.60.0100.04713.98
5.3.50.0070.06713.83
5.3.40.0130.06713.93
5.3.30.0000.07313.79
5.3.20.0000.08013.70
5.3.10.0030.08013.64
5.3.00.0100.07013.60
5.2.170.0000.06712.20
5.2.160.0130.06312.20
5.2.150.0170.03012.20
5.2.140.0070.05712.20
5.2.130.0000.06012.20
5.2.120.0030.06712.20
5.2.110.0070.03012.20
5.2.100.0030.06312.20
5.2.90.0070.03312.20
5.2.80.0070.05712.20
5.2.70.0030.05712.20
5.2.60.0070.05712.20
5.2.50.0130.05012.20
5.2.40.0030.05312.20
5.2.30.0030.03712.20
5.2.20.0030.03312.20
5.2.10.0030.06012.20
5.2.00.0070.05712.20
5.1.60.0070.05312.20
5.1.50.0030.05312.20
5.1.40.0070.03712.20
5.1.30.0030.03012.20
5.1.20.0070.03712.20
5.1.10.0000.02712.20
5.1.00.0000.04312.20
5.0.50.0000.04312.20
5.0.40.0070.03312.20
5.0.30.0030.05712.20
5.0.20.0100.03712.20
5.0.10.0030.04712.20
5.0.00.0030.06012.20
4.4.90.0030.02712.20
4.4.80.0030.03012.20
4.4.70.0030.03012.20
4.4.60.0000.03312.20
4.4.50.0030.03312.20
4.4.40.0030.04312.20
4.4.30.0030.03712.20
4.4.20.0000.02012.20
4.4.10.0000.02012.20
4.4.00.0070.05012.20
4.3.110.0070.02712.20
4.3.100.0030.01712.20
4.3.90.0000.03312.20
4.3.80.0000.02712.20
4.3.70.0030.02712.20
4.3.60.0000.01712.20
4.3.50.0030.03712.20
4.3.40.0070.04712.20
4.3.30.0070.03312.20
4.3.20.0000.03712.20
4.3.10.0000.03712.20
4.3.00.0000.03012.20

preferences:
49.73 ms | 401 KiB | 5 Q