3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php elseif( get_row_layout() == 'elvedes-tabs' ): ?> <div class="content-block"> <div class="content-block-inner content-block-background-image"> <div class="container"> <div class="titel-wrapper"> <h2 class="titel"> <?php the_sub_field('titel'); ?> </h2> </div> <div class="tekst-veld"> <?php the_sub_field('tekst-veld'); ?> </div> <?php $tabSection = 0; $tabLabel = 0; $tabContent = 0; ?> <section class="tab-section tab-section--<?php echo $tabSection++; ?>"> <nav class="tab-nav"> <?php if(have_rows('tabs'): ?> <?php while(have_rows('tabs'): the_row(); ?> <a href="#tab-content--<php $tabLabel++; ?>"><?php the_sub_field('tab_label'); ?></a> <?php endwhile; ?> <?php endif; ?> </nav> <?php if(have_rows('tabs'): ?> <?php while(have_rows('tabs'): the_row(); ?> <div id="tab-content--<?php $tabContent++; ?>" class="tab-content"> <?php the_sub_field('tab_content'); ?> </div> <?php endwhile; ?> <?php endif; ?> </section> <?php endwhile; else : // no rows found endif; ?> <script type="text/javascript"> $('.tab-section').each(function(i){ $('.tab-section--' + i + ' .tab-content').not(':first').hide(); $('.tab-section--' + i + ' .tab-content:first').show(); $('.tab-section--' + i + ' .tab-nav span:first').addClass('tab-nav--active'); $('.tab-section--' + i + ' .tab-nav').on('click', 'span', function(){ //Remove class of active tab $('.tab-section--' + i + ' .tab-nav span.tab-nav--active').removeClass('tab-nav--active'); //Add class of active to clicked tab $(this).addClass('tab-nav--active'); $('.tab-section--' + i + ' .tab-content').hide(); //Show clicked tab $($('a',this).attr('href')).show(); return false; }); }); </script>
based on J8I0O
Output for 7.0.0 - 7.0.7
Parse error: syntax error, unexpected 'elseif' (T_ELSEIF), expecting end of file in /in/e5q8e on line 1
Process exited with code 255.
Output for 5.5.0 - 5.6.22
Parse error: syntax error, unexpected 'elseif' (T_ELSEIF) in /in/e5q8e on line 1
Process exited with code 255.