3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<div class="sidebar" id=""> <a href="<?php echo get_settings('home'); ?>"><img src="<?php bloginfo('template_directory'); ?>/_/img/logo.svg"></a> <nav> <!-- <ul><?php $args = array( 'orderby' => 'none', 'order' => 'ASC', 'hide_empty' => 0, 'use_desc_for_title' => 0, 'hierarchical' => 1, 'title_li' => '', 'taxonomy' => 'project_category', ); wp_list_categories($args); ?> </ul> --> <?php //$current_term = get_query_var( 'term' ); echo $term; ?> <ul class="projectmenu"> <?php $custom_terms = get_terms('project_category', 'hide_empty=0'); $c = '0'; foreach($custom_terms as $custom_term) { wp_reset_query(); $args = array('post_type' => 'project', 'tax_query' => array( array( 'taxonomy' => 'project_category', 'field' => 'slug', 'terms' => $custom_term->slug, ), ), ); $loop = new WP_Query($args); if($loop->have_posts()) { $c++; /* ?> <li><label for="<?php echo 'menu_'.$c.'';?>"><span><?php echo''.$custom_term->name.''; ?></span></label> <input type="radio" name="category" id="<?php echo 'menu_'.$c.'';?>" value="your value" <?php if(isset($_POST['category'])) echo "checked='checked'"; ?> /> <?php */ echo ' <li><label for="menu_'.$c.'"><span>'.$custom_term->name.'</span></label> <input type="radio" name="category" id="menu_'.$c.'" /> '; ?> <ul class="submenu"> <?php while($loop->have_posts()) : $loop->the_post(); echo '<li><a href="'.get_permalink().'">'.get_the_title().'</a></li>'; endwhile; ?> </ul> <?php } } // endif // } //endif ?> </li> </ul> <!-- <ul> <li><a href="#">Fotografie</a></li> <ul class="submenu"> <li><a href="#">long time no see</a></li> <li><a href="#">on the rocks</a></li> <li><a href="#">quite simple</a></li> <li><a href="#">perfect day</a></li> </ul> </ul> --> <?php wp_nav_menu(array('menu' => 'Hauptnavigation'));?> </nav> </div>
Output for 7.0.0 - 7.1.0
<div class="sidebar" id=""> <a href=" Fatal error: Uncaught Error: Call to undefined function get_settings() in /in/FNjkG:2 Stack trace: #0 {main} thrown in /in/FNjkG on line 2
Process exited with code 255.
Output for hhvm-3.12.0
<div class="sidebar" id=""> <a href=" Fatal error: Uncaught Error: Call to undefined function get_settings() in /in/FNjkG:2 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.0.0 - 5.6.28, hhvm-3.10.0
<div class="sidebar" id=""> <a href=" Fatal error: Call to undefined function get_settings() in /in/FNjkG on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<div class="sidebar" id=""> <a href=" Fatal error: Call to undefined function: get_settings() in /in/FNjkG on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<div class="sidebar" id=""> <a href=" Fatal error: Call to undefined function: get_settings() in /in/FNjkG on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<div class="sidebar" id=""> <a href=" Fatal error: Call to undefined function: get_settings() in /in/FNjkG on line 2