3v4l.org

run code in 300+ PHP versions simultaneously
<?php $post_object = get_sub_field('nill_modselectevent'); if( $post_object ): // override $post $post = $post_object; setup_postdata( $post ); ?> <?php $location = get_field('nill_eventgooglemap'); if( !empty($location) ): ?> <!-- Event Post --> <div class="row nill-back-two"> <div class="container-fluid"> <div class="col-xs-12 col-sm-12 col-md-12 nill-space-four"> <div class="nillplay-modmapover"> <div class="col-xs-12 col-sm-12 col-md-12"> <div class="row"> <!-- Event Title --> <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6"> <div class="nillplay-modevent-title"> <h1><?php the_titlesmall('', '', true, 100 ) ?></h1> <h2><?php content('12'); ?></h2> <a href="<?php the_permalink() ?>" class="btn btn-inverse nillplay-modeventbtn"><?php _e( 'Read More', 'nillnews' ); ?></a> </div> </div> <!-- Event Count --> <div class="hidden-xs hidden-sm col-md-6 col-lg-6"> <div class="nillplay-modevent-title pull-right"> <h1><?php _e( 'Time', 'nillnews' ); ?></h1> <div class="nill-event-countdown-two"> <?php $date = DateTime::createFromFormat('Ymd', get_field('nill_eventtime')); ?> <div id="countdown" class="nill-event-countdown-list"></div> <script> var target_date = new Date("<?php echo $date->format('m, d, Y'); ?>").getTime(); var days, hours, minutes, seconds; var countdown = document.getElementById("countdown"); setInterval(function () { var current_date = new Date().getTime(); var seconds_left = (target_date - current_date) / 1000; days = parseInt(seconds_left / 86400); seconds_left = seconds_left % 86400; hours = parseInt(seconds_left / 3600); seconds_left = seconds_left % 3600; minutes = parseInt(seconds_left / 60); seconds = parseInt(seconds_left % 60); countdown.innerHTML = "<ul>" + "<li>" + days + "<div class='nill-counttext'>Days</div>" + "</li>" + "<li>" + hours + "<div class='nill-counttext'>Hours</div>" + "</li>" + "<li>" + minutes + "<div class='nill-counttext'>Minutes</div>" + "</li>" + "<li>" + seconds + "<div class='nill-counttext'>Seconds</div>" + "</li>" + "</ul>"; }, 1000); </script> </div> </div> </div> </div> </div> <div class="nillplay-modulevent-back"></div> <div class="acf-map" style="position:absolute; border:none; right:0; float:right; width:105%; margin-top:0px; margin-bottom:0px; padding:0; margin-left:-30px; z-index:0;"> <div class="marker" data-lat="<?php echo $location['lat']; ?>" data-lng="<?php echo $location['lng']; ?>"></div> </div> </div> </div> </div> </div> <div class="clearfix"></div> <?php endif; ?> <?php wp_reset_postdata(); ?> <?php wp_reset_query(); ?> <?php endif; ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function get_sub_field() in /in/EDTG5:3 Stack trace: #0 {main} thrown in /in/EDTG5 on line 3
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.64 ms | 401 KiB | 8 Q