3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<!DOCTYPE html> <html <?php language_attributes(); ?>> <head> <meta charset="utf-8"> <title> <?php ( is_home() || is_front_page() ) ? bloginfo('name') : wp_title(); ?> </title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <?php if( $favicon = $GLOBALS['_webnukes']->fw_get_settings('sub_header_settings', 'favicon' ) ): ?> <link rel="icon" type="image/png" href="<?php echo $favicon; ?>" /> <?php endif; ?> <!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]--> <?php wp_head(); ?> </head> <?php $styles = $GLOBALS['_webnukes']->fw_get_settings('sub_color_and_style', 'color_scheme', 'light'); $_COOKIE['social_color_scheme'] = kvalue( $_COOKIE, 'social_color_scheme', $styles );?> <body <?php body_class( $_COOKIE['social_color_scheme'] ); ?>> //* <div class="wrap"> <div class="color-picker-wrap" style="margin-left:-308px;"> <a href="javascript:void(0);" class="clickto_clor_picker fw-hidden"></a> <div class="social-color-scheme"> <a href="javascript:void(0);" data-id="light" class="btn">Light</a> <a href="javascript:void(0);" data-id="dark" class="btn">Dark</a> </div> <input type="text" value="<?php echo $_COOKIE['fw_color_scheme']; ?>" class="fw_demo_color_picker" data-default-color="<?php echo $styles; ?>" /> </div> <script type="text/javascript"> jQuery(document).ready(function($){ $('.fw_demo_color_picker').wpColorPicker({ defaultColor: '<?php echo $_COOKIE['fw_color_scheme']; ?>', change: function(event, ui){ var scheme = $('style[title="fw_color_scheme"]').text(); var color = ui.color.toString(); var cookie_color = $.cookie('fw_color_scheme'); if( cookie_color === undefined ){ $.cookie('fw_color_scheme', '<?php echo $_COOKIE['fw_color_scheme']; ?>'); cookie_color = $.cookie('fw_color_scheme'); } $.cookie('fw_color_scheme', color ); var re = new RegExp(cookie_color, 'g'); var s_text = scheme.replace( re, color ); $('style[title="fw_color_scheme"]').text( s_text ); //console.log( scheme ); }, palettes: true, hide: false, }); $('.clickto_clor_picker').click(function(e) { e.preventDefault(); if( $(this).hasClass('fw-hidden') ){ $(this).parent().animate({"margin-left": '+=308'}, {duration: 1200}); $(this).removeClass('fw-hidden'); }else{ $(this).parent().animate({"margin-left": '-=308'}, {duration: 1200}); $(this).addClass('fw-hidden'); } }); $('.social-color-scheme a').click(function(e) { e.preventDefault(); var color = $(this).attr('data-id'); $.cookie('social_color_scheme', color ); if( color === 'dark' ) { $('body').addClass('dark'); }else{ $('body').removeClass('dark'); } }); }); function validate(){ var search_home = document.getElementById('search').value; if(search_home == 'Search Videos' || search_home == ''){ return false; } else {return true;} return false; } </script> </div> *// <div class="tp-bar"> <div class="container"> <?php get_template_part('libs/userbar'); ?> <?php wp_nav_menu(array('theme_location' => 'top_menu', 'container'=>null, 'menu_class' => 'tp-links', 'fallback_cb' => false)); ?> </div> </div> <!-- tp-links end --> <div class="logo-bar"> <div class="container"> <div class="logo"> <?php $logo = $GLOBALS['_webnukes']->fw_get_settings('sub_logo'); ?> <a href="<?php echo home_url(); ?>"> <img src="<?php echo kvalue($logo, 'logo', get_template_directory_uri().'/images/logo.png'); ?>" alt="<?php bloginfo('name');?>"> </a> </div> <!-- logo ends --> <?php $main_menu_toggle = $GLOBALS['_webnukes']->fw_get_settings('sub_general_settings', 'menu_status'); $main_menu = wp_nav_menu(array('theme_location' => 'main_menu', 'container'=>null, 'menu_class' => 'menu', 'echo' => false,'fallback_cb' => false)); ?> <?php if( $main_menu && $main_menu_toggle != 'on' ): ?> <div class="menu-btn"> <a href="javascript:void(0);" class="open-menu"> <?php _e('Menu', THEME_NAME);?> </a> </div> <?php endif; ?> <div class="socialize"> <ul> <li> <div class="main-search"> <form action="" method="get" onsubmit="return validate();"> <input type="text" name="s" id="search" placeholder="<?php _e('Search Videos', THEME_NAME);?>" value="<?php echo kvalue($_GET, 's');?>" /> <input type="submit" value="" /> </form> </div> </li> <li class="sp"></li> <?php echo fw_social_networks();?> </ul> </div> </div> </div> <!-- logo-bar ends --> <div class="menu-bar" style=" <?php echo ($main_menu_toggle == 'on' ) ? 'display:block;' : ''; ?>"> <div class="container"> <?php echo $main_menu; ?> </div> </div> <!-- menu-bar ends -->
Output for 7.0.0 - 7.1.0
<!DOCTYPE html> <html Fatal error: Uncaught Error: Call to undefined function language_attributes() in /in/JkNBg:2 Stack trace: #0 {main} thrown in /in/JkNBg on line 2
Process exited with code 255.
Output for 5.0.0 - 5.6.26
<!DOCTYPE html> <html Fatal error: Call to undefined function language_attributes() in /in/JkNBg on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<!DOCTYPE html> <html Fatal error: Call to undefined function: language_attributes() in /in/JkNBg on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<!DOCTYPE html> <html Fatal error: Call to undefined function: language_attributes() in /in/JkNBg on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<!DOCTYPE html> <html Fatal error: Call to undefined function: language_attributes() in /in/JkNBg on line 2