3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * Aside posts * * @package Bromine * @since Bromine 1.0.0 */ ?> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <header class="post-header"> <div class="header-metas"> <?php bro_post_format(); ?> <span class="post-date"> <time class="published" datetime="<?php echo get_the_time('c'); ?>"><?php echo get_the_date(); ?></time> </span> <span class="post-author"> <?php _e( '- By ', 'bromine' ); ?><a title="<?php _e('See other posts by ', 'bromine'); the_author_meta( 'display_name' ); ?>" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>"><?php the_author_meta( 'display_name' ); ?></a> </span> </div> <?php bro_display_thumbnails(); if ( is_single() ) : the_title( '<h1 class="post-title">', '</h1>' ); else: the_title( '<h1 class="post-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h1>' ); endif; ?> </header> <div class="post-content"> <?php if( is_single() ) : the_content(); bro_content_nav(); else: the_excerpt(); ?> <a class="read-more" href="<?php the_permalink(); ?>" title="<?php echo _e( 'Read more', 'antimony' ); ?>"><?php echo _e( 'Read more', 'antimony' ); ?></a> <?php endif; ?> </div> <?php if( is_single() ) : ?> <footer class="post-footer"> <ul class="taxo-metas"> <?php if( get_the_category() ) { ?><li class="category"><i class="gicn gicn-category"></i><?php the_category(' &#8226; '); ?></li><?php } ?> <li class="tag-links"><i class="gicn gicn-tag"></i><?php $tags_list = get_the_tag_list( '', __( ' ', 'bromine' ) ); if ( $tags_list ) : printf( __( '%1$s', 'bromine' ), $tags_list ); else : _e( 'No tags', 'bromine' ); endif; ?> </li> </ul> </footer> <?php endif; ?> </article>
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
<article id="post- Fatal error: Uncaught Error: Call to undefined function the_ID() in /in/YmrT6:9 Stack trace: #0 {main} thrown in /in/YmrT6 on line 9
Process exited with code 255.
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28
<article id="post- Fatal error: Call to undefined function the_ID() in /in/YmrT6 on line 9
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<article id="post- Fatal error: Call to undefined function: the_id() in /in/YmrT6 on line 9
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
<article id="post- Fatal error: Call to undefined function: the_id() in /in/YmrT6 on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<article id="post- Fatal error: Call to undefined function: the_id() in /in/YmrT6 on line 9

preferences:
256.98 ms | 401 KiB | 329 Q