3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * The Header for our theme. * * Displays all of the <head> section and everything up till <main id="main"> * * @package GeneratePress */ ?><!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <?php if ( ! function_exists( '_wp_render_title_tag' ) ) : ?> <title><?php wp_title( '|', true, 'right' ); ?></title> <?php endif; ?> <link rel="profile" href="http://gmpg.org/xfn/11"> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> <?php wp_head(); ?> <meta name="yandex-verification" content="61956597e0847b6d" /> <meta name="google-site-verification" content="cYRgqSXnw-g3IhaiDBLKpNVTwJjcbFY8TdfBb1Jp3vc" /> </head> <body <?php generate_body_schema();?> <?php body_class(); ?>> <?php do_action( 'generate_before_header' ); ?> <a class="screen-reader-text skip-link" href="#content" title="<?php esc_attr_e( 'Skip to content', 'generate' ); ?>"><?php _e( 'Skip to content', 'generate' ); ?></a> <header itemtype="http://schema.org/WPHeader" itemscope="itemscope" id="masthead" <?php generate_header_class(); ?>> <div <?php generate_inside_header_class(); ?>> <?php do_action( 'generate_before_header_content'); ?> <?php generate_header_items(); ?> <?php do_action( 'generate_after_header_content'); ?> </div><!-- .inside-header --> </header><!-- #masthead --> <?php do_action( 'generate_after_header' ); ?> <div id="page" class="hfeed site grid-container container grid-parent"> <div id="content" class="site-content"> <?php do_action('generate_inside_container'); ?>
Output for 7.0.0 - 7.0.33, 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.4, 8.3.6
<!DOCTYPE html> <html Fatal error: Uncaught Error: Call to undefined function language_attributes() in /in/JRgch:10 Stack trace: #0 {main} thrown in /in/JRgch on line 10
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 <!DOCTYPE html> <html Fatal error: Uncaught Error: Call to undefined function language_attributes() in /in/JRgch:10 Stack trace: #0 {main} thrown in /in/JRgch on line 10
Process exited with code 255.
Output for 5.6.38
<!DOCTYPE html> <html Fatal error: Call to undefined function language_attributes() in /in/JRgch on line 10
Process exited with code 255.

preferences:
187.96 ms | 401 KiB | 217 Q