3v4l.org

run code in 300+ PHP versions simultaneously
<?php get_header(); ?><?php // Custom Post Options $template = get_post_meta($post->ID, 'wpzoom_post_template', true); $videolocation = get_post_meta($post->ID, 'wpzoom_post_embed_location', true); $videotype = get_post_meta($post->ID, 'wpzoom_video_type', true); $videoexternal = get_post_meta($post->ID, 'wpzoom_post_embed_code', true); $videoselfhosted = get_post_meta($post->ID, 'wpzoom_post_embed_self', true); $video_hd = get_post_meta($post->ID, 'wpzoom_post_embed_hd', true); $skin = strtolower(get_post_meta($post->ID, 'wpzoom_post_embed_skin', true)); ?><div id="main"<?php if ($template == 'full') {echo' class="full"';} elseif ($template == 'side-left') {echo' class="invert"';} ?>> <div class="wrapper"> <?php while (have_posts()) : the_post(); $image = get_the_image( array( 'size' => 'large', 'image_scan' => false, 'echo' => false, 'format' => 'array' ) ); if (!empty ($image)) { $url = $image['src']; } ?> <?php if ($videolocation == 'Before everything else') { ?> <?php if ($videotype == 'external') { if (strlen($videoexternal) > 1) { // Embedding video from external site $videoexternal = embed_fix($videoexternal,920,518); // add wmode=transparent to iframe/embed ?> <div class="zoomVideo zoomVideoBig"><?php echo "$videoexternal"; ?></div> <?php } } else { if (strlen($videoselfhosted) > 1 && $videotype == 'selfhosted') { // Embed self-hosted video using JW Player ?> <div class="zoomVideo zoomVideoBig"> <div id='jw_video'>Video</div> <script type='text/javascript'> jwplayer('jw_video').setup({ 'file': '<?php echo "$videoselfhosted"; ?>', 'skin': '<?php echo get_template_directory_uri(); ?>/js/skins/<?php echo "$skin/$skin.zip"; ?>', <?php if (!empty ($image)) { ?>'image' : '<?php echo "$url"; ?>', <?php } ?> 'width': '925', 'height': '518', 'stretching': 'fill', <?php if (strlen($video_hd) > 1) { ?>'plugins': { 'hd-1': { 'file': '<?php echo "$video_hd"; ?>' } }, <?php } ?> 'modes': [ {type: 'flash', src: '<?php echo get_template_directory_uri(); ?>/js/player.swf'}, {type: 'html5'} ] }); </script> </div> <?php } } ?> <?php } else { ?> <div class="sep sepMenu">&nbsp;</div> <?php } ?> <div id="content"> <?php if (option::get('meta_sidebar') == 'on') { // Show Meta Sidebar? ?> <div class="postmetadata"> <?php if (option::get('post_category') == 'on') { // Show Category? ?> <div class="section"> <h3><?php _e('Categories', 'wpzoom') ?></h3> <?php the_category(', '); ?> </div> <?php } ?> <?php if (option::get('post_tags') == 'on') { // Show Tags??> <?php the_tags( '<div class="section tags"><h3>'.__('Tags', 'wpzoom').'</h3>', ' ', '<div class="cleaner">&nbsp;</div></div>'); ?> <?php } ?> <?php if (option::get('post_share') == 'on') { // Show Social Icons? ?> <div class="section"> <h3><?php _e('Share this post', 'wpzoom') ?></h3> <ul class="wpzoomSocial"> <li><a href="http://twitter.com/share" data-url="<?php the_permalink() ?>" class="twitter-share-button" data-count="horizontal">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li> <li><iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink($post->ID)); ?>&amp;layout=button_count&amp;show_faces=false&amp;width=1000&amp;action=like&amp;font=arial&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:127px; height:21px;" allowTransparency="true"></iframe></li> <li><g:plusone size="medium"></g:plusone></li> </ul> <div class="cleaner">&nbsp;</div> </div> <?php } // if social icons should be shown ?> </div><!-- /.postmetadata --> <?php } // if meta sidebar is shown ?> <?php if (option::get('meta_sidebar') == 'off') { echo "<div class=\"no_meta\">"; } ?> <div id="post-<?php the_ID(); ?>" <?php post_class('singlepost'); ?>><?php RBL_UI(); ?> <?php if ($videolocation == 'In the middle column' && $template != 'full') { if ($videotype == 'external') { if (strlen($videoexternal) > 1) { // Embedding video from external site $videoexternal = embed_fix($videoexternal,570,320); // add wmode=transparent to iframe/embed echo "<div class=\"zoomVideo\">$videoexternal</div>"; } } else { if (strlen($videoselfhosted) > 1) { // Embed self-hosted video using JW Player ?> <div class="zoomVideo"> <div id='jw_video'>Video</div> <script type='text/javascript'> jwplayer('jw_video').setup({ 'file': '<?php echo "$videoselfhosted"; ?>', 'skin': '<?php echo get_template_directory_uri(); ?>/js/skins/<?php echo "$skin/$skin.zip"; ?>', <?php if (!empty ($image)) { ?>'image' : '<?php echo "$url"; ?>', <?php } ?> 'width': '570', 'height': '320', 'stretching': 'fill', <?php if (strlen($video_hd) > 1) { ?>'plugins': { 'hd-1': { 'file': '<?php echo "$video_hd"; ?>' } }, <?php } ?> 'modes': [ {type: 'flash', src: '<?php echo get_template_directory_uri(); ?>/js/player.swf'}, {type: 'html5'} ] }); </script> </div> <?php } } } ?> <?php if ($videolocation == 'In the middle column' && $template == 'full') { if ($videotype == 'external') { if (strlen($videoexternal) > 1) { // Embedding video from external site $videoexternal = embed_fix($videoexternal,818,460); // add wmode=transparent to iframe/embed echo "<div class=\"zoomVideo\">$videoexternal</div>"; } } else { if (strlen($videoselfhosted) > 1) { // Embed self-hosted video using JW Player ?> <div class="zoomVideo"> <div id='jw_video'>Video</div> <script type='text/javascript'> jwplayer('jw_video').setup({ 'file': '<?php echo "$videoselfhosted"; ?>', 'skin': '<?php echo get_template_directory_uri(); ?>/js/skins/<?php echo "$skin/$skin.zip"; ?>', <?php if (!empty ($image)) { ?>'image' : '<?php echo "$url"; ?>', <?php } ?> 'width': '818', 'height': '460', 'stretching': 'fill', <?php if (strlen($video_hd) > 1) { ?>'plugins': { 'hd-1': { 'file': '<?php echo "$video_hd"; ?>' } }, <?php } ?> 'modes': [ {type: 'flash', src: '<?php echo get_template_directory_uri(); ?>/js/player.swf'}, {type: 'html5'} ] }); </script> </div> <?php } } } ?> <p class="postmetadata"><?php if (option::get('post_author') == 'on') { ?><?php _e('Posted by', 'wpzoom') ?> <?php the_author_posts_link(); } ?><?php if (option::get('post_author') == 'on' && option::get('post_date') == 'on') { ?> <?php _e('on', 'wpzoom') ?> <?php } ?><?php if (option::get('post_date') == 'on') { ?> <?php printf('%s at %s', get_the_date(), get_the_time()); } ?> </p> <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1> <div class="entry"> <?php the_content(); ?> </div> <?php wp_link_pages(array('before' => '<p class="pages"><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?> <p class="more"><?php edit_post_link( __('Edit this post &raquo;', 'wpzoom'), '', ''); ?></p> </div><!-- /.singlepost --> <?php if (option::get('meta_sidebar') == 'off') { echo "</div>"; } ?> <div class="cleaner">&nbsp;</div> <?php if (option::get('post_comments') == 'on') { comments_template(); } ?> </div><!-- /#content --> <?php if ($template != 'full') { get_sidebar(); } ?> <div class="cleaner">&nbsp;</div> <?php endwhile; ?> </div><!-- /.wrapper --></div><!-- /#main --><?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.40.0060.00920.73
8.3.30.0120.00319.34
8.3.20.0080.00020.48
8.3.10.0080.00023.52
8.3.00.0080.00017.46
8.2.170.0040.01122.96
8.2.160.0140.00020.34
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0110.00426.16
8.2.120.0000.00721.02
8.2.110.0030.00622.10
8.2.100.0090.00317.91
8.2.90.0080.00019.17
8.2.80.0040.00417.97
8.2.70.0030.00617.75
8.2.60.0030.00518.04
8.2.50.0000.00818.07
8.2.40.0000.00818.28
8.2.30.0030.00618.19
8.2.20.0000.00717.72
8.2.10.0050.00318.04
8.2.00.0040.00417.80
8.1.270.0000.00823.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.01023.79
8.1.230.0110.00019.27
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0070.00317.48
8.1.190.0040.00417.12
8.1.180.0040.00418.10
8.1.170.0080.00018.66
8.1.160.0070.00022.03
8.1.150.0050.00218.81
8.1.140.0040.00417.46
8.1.130.0050.00217.77
8.1.120.0040.00417.53
8.1.110.0030.00617.42
8.1.100.0030.00517.43
8.1.90.0000.00717.36
8.1.80.0040.00417.47
8.1.70.0050.00317.34
8.1.60.0030.00617.57
8.1.50.0000.00817.52
8.1.40.0080.00017.56
8.1.30.0030.00617.59
8.1.20.0030.00717.72
8.1.10.0000.00817.70
8.1.00.0000.00817.61
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0070.00018.52
8.0.270.0040.00317.18
8.0.260.0030.00317.27
8.0.250.0000.00816.99
8.0.240.0030.00617.11
8.0.230.0000.00716.96
8.0.220.0030.00317.02
8.0.210.0020.00517.07
8.0.200.0030.00316.94
8.0.190.0000.00817.13
8.0.180.0040.00416.91
8.0.170.0060.00317.07
8.0.160.0040.00417.00
8.0.150.0000.00917.09
8.0.140.0000.00817.00
8.0.130.0030.00513.45
8.0.120.0040.00416.90
8.0.110.0000.00717.05
8.0.100.0040.00416.88
8.0.90.0080.00016.94
8.0.80.0160.00617.06
8.0.70.0000.00816.84
8.0.60.0020.00717.08
8.0.50.0030.00517.06
8.0.30.0130.01417.03
8.0.20.0140.00817.40
8.0.10.0000.00716.87
8.0.00.0130.00616.86
7.4.330.0000.00615.00
7.4.320.0070.00016.50
7.4.300.0000.00716.57
7.4.290.0070.00016.57
7.4.280.0040.00416.57
7.4.270.0070.00016.69
7.4.260.0000.00816.45
7.4.250.0020.00516.68
7.4.240.0020.00616.67
7.4.230.0000.00916.70
7.4.220.0070.01116.61
7.4.210.0140.00016.63
7.4.200.0040.00416.69
7.4.160.0080.00816.48
7.4.150.0120.00617.40
7.4.140.0120.00717.86
7.4.130.0090.01616.60
7.4.120.0080.01016.76
7.4.110.0050.02016.62
7.4.100.0130.01016.52
7.4.90.0200.00416.69
7.4.80.0090.00919.39
7.4.70.0000.01716.61
7.4.60.0100.00616.64
7.4.50.0060.00316.25
7.4.40.0100.01016.71
7.4.30.0030.01316.39
7.4.00.0100.00714.75
7.3.330.0000.00513.15
7.3.320.0050.00013.33
7.3.310.0040.00416.39
7.3.300.0000.00716.30
7.3.290.0090.00616.38
7.3.280.0110.00916.42
7.3.270.0140.00517.40
7.3.260.0120.01216.71
7.3.250.0110.01116.54
7.3.240.0110.00816.38
7.3.230.0160.00316.46
7.3.210.0140.00316.44
7.3.200.0030.01919.39
7.3.190.0130.00816.77
7.3.180.0130.00316.32
7.3.170.0030.01316.43
7.3.160.0160.00016.39
7.3.10.0070.00716.27
7.3.00.0100.01016.33
7.2.330.0150.00916.63
7.2.320.0140.01116.59
7.2.310.0100.00716.72
7.2.300.0090.01316.38
7.2.290.0110.01216.77
7.2.130.0150.00416.27
7.2.120.0060.01616.10
7.2.110.0040.01116.27
7.2.100.0110.00816.42
7.2.90.0180.00916.65
7.2.80.0030.01516.61
7.2.70.0130.00316.32
7.2.60.0120.00516.49
7.2.50.0100.00316.68
7.2.40.0070.01116.48
7.2.30.0180.00016.64
7.2.20.0060.01016.39
7.2.10.0030.00716.27
7.2.00.0070.00316.37
7.1.250.0050.00715.48
7.1.200.0090.00615.56
7.1.100.0030.01218.05
7.1.70.0000.00716.82
7.1.60.0040.01919.40
7.1.50.0030.02016.90
7.1.00.0030.07722.40
7.0.200.0030.00716.68
7.0.140.0000.06722.08
7.0.100.0030.08320.07
7.0.90.0070.08020.27
7.0.80.0070.08320.13
7.0.70.0070.08020.06
7.0.60.0100.08019.91
7.0.50.0070.04320.30
7.0.40.0000.04320.08
7.0.30.0070.03719.96
7.0.20.0030.05720.08
7.0.10.0070.07020.14
7.0.00.0070.10320.10
5.6.280.0000.07320.95
5.6.250.0030.08020.55
5.6.240.0130.07320.77
5.6.230.0100.04720.59
5.6.220.0000.08020.73
5.6.210.0100.07720.71
5.6.200.0070.06021.11
5.6.190.0030.04021.23
5.6.180.0030.04021.01
5.6.170.0070.04721.17
5.6.160.0070.03721.07
5.6.150.0070.07021.16
5.6.140.0000.08021.11
5.6.130.0030.06021.03
5.6.120.0030.07021.13
5.6.110.0070.04321.01
5.6.100.0030.04321.01
5.6.90.0000.04321.09
5.6.80.0070.03720.61
5.6.70.0030.04320.57
5.6.60.0100.06020.46
5.6.50.0000.04320.52
5.6.40.0030.04020.49
5.6.30.0030.04020.44
5.6.20.0070.03720.48
5.6.10.0100.03320.52
5.6.00.0030.04020.35
5.5.380.0030.06020.54
5.5.370.0030.07020.55
5.5.360.0130.07020.43
5.5.350.0100.07320.49
5.5.340.0100.04020.95
5.5.330.0070.04720.89
5.5.320.0000.05020.84
5.5.310.0030.04320.86
5.5.300.0030.06320.95
5.5.290.0200.06320.89
5.5.280.0030.04320.84
5.5.270.0030.04320.91
5.5.260.0100.03720.79
5.5.250.0100.05320.74
5.5.240.0100.03320.31
5.5.230.0070.04020.33
5.5.220.0070.04320.24
5.5.210.0100.05720.35
5.5.200.0070.03720.28
5.5.190.0030.04320.30
5.5.180.0030.04020.26
5.5.160.0000.04320.34
5.5.150.0000.04320.21
5.5.140.0170.03320.18
5.5.130.0070.05720.32
5.5.120.0030.04020.18
5.5.110.0070.04320.33
5.5.100.0000.08320.14
5.5.90.0070.07020.11
5.5.80.0070.08020.15
5.5.70.0100.07720.11
5.5.60.0130.03720.02
5.5.50.0070.05020.11
5.5.40.0070.06320.15
5.5.30.0200.06020.13
5.5.20.0070.07720.20
5.5.10.0100.08020.04
5.5.00.0000.05320.09
5.4.450.0030.05019.23
5.4.440.0070.08319.41
5.4.430.0100.04019.11
5.4.420.0100.06719.41
5.4.410.0070.04019.27
5.4.400.0030.03719.03
5.4.390.0070.03719.15
5.4.380.0070.06719.07
5.4.370.0030.03718.79
5.4.360.0030.03718.82
5.4.350.0030.04019.07
5.4.340.0000.04718.91
5.4.320.0130.03019.08
5.4.310.0070.04018.95
5.4.300.0000.04019.07
5.4.290.0070.03019.02
5.4.280.0000.04319.09
5.4.270.0030.04319.02
5.4.260.0000.05319.05
5.4.250.0100.07319.04
5.4.240.0070.07718.94
5.4.230.0030.07319.04
5.4.220.0070.08019.06
5.4.210.0030.08319.03
5.4.200.0030.04318.97
5.4.190.0030.07319.11
5.4.180.0130.07019.06
5.4.170.0130.07019.13
5.4.160.0070.06719.09
5.4.150.0070.07719.00
5.4.140.0100.07716.27
5.4.130.0100.05316.12
5.4.120.0130.06316.12
5.4.110.0100.06716.36
5.4.100.0170.06716.39
5.4.90.0000.07316.50
5.4.80.0030.05316.38
5.4.70.0030.07316.27
5.4.60.0170.06716.45
5.4.50.0030.07316.37
5.4.40.0070.06716.46
5.4.30.0100.07316.28
5.4.20.0070.07316.46
5.4.10.0030.06316.24
5.4.00.0070.06015.53

preferences:
35.39 ms | 400 KiB | 5 Q