3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 7.0.0 - 7.1.0
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.
Output for 5.0.0 - 5.6.25
Fatal error: Call to undefined function get_sub_field() in /in/EDTG5 on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: get_sub_field() in /in/EDTG5 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: get_sub_field() in /in/EDTG5 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: get_sub_field() in /in/EDTG5 on line 3