3v4l.org

run code in 300+ PHP versions simultaneously
<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 git.master, git.master_jit, rfc.property-hooks
<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.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
30.58 ms | 401 KiB | 8 Q