3v4l.org

run code in 300+ PHP versions simultaneously
<?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>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.0.70.0130.07319.91
7.0.60.0130.06019.88
7.0.50.0270.05720.41
7.0.40.0330.06720.17
7.0.30.0200.08020.33
7.0.20.0200.08020.32
7.0.10.0200.05320.39
7.0.00.0300.07020.37
5.6.220.0170.06320.63
5.6.210.0300.04320.81
5.6.200.0170.06321.02
5.6.190.0270.07021.14
5.6.180.0270.05321.08
5.6.170.0130.06021.02
5.6.160.0170.05721.11
5.6.150.0100.07321.02
5.6.140.0130.06021.16
5.6.130.0200.06721.00
5.6.120.0270.05020.98
5.6.110.0100.06721.12
5.6.100.0300.04720.95
5.6.90.0200.05321.05
5.6.80.0170.07320.40
5.6.70.0100.07020.49
5.6.60.0170.05720.40
5.6.50.0130.06320.55
5.6.40.0270.05720.55
5.6.30.0070.06320.46
5.6.20.0130.05720.44
5.6.10.0170.05020.34
5.6.00.0130.06320.41
5.5.360.0200.05320.49
5.5.350.0100.06320.46
5.5.340.0170.05720.64
5.5.330.0130.06020.89
5.5.320.0200.05720.95
5.5.310.0200.06720.98
5.5.300.0170.05320.97
5.5.290.0130.06020.82
5.5.280.0170.05720.96
5.5.270.0130.06320.94
5.5.260.0170.06020.82
5.5.250.0100.07020.58
5.5.240.0270.05020.16
5.5.230.0230.05320.30
5.5.220.0230.05020.32
5.5.210.0230.07020.36
5.5.200.0130.06320.28
5.5.190.0130.06320.23
5.5.180.0070.06720.12
5.5.160.0200.05020.33
5.5.150.0130.05720.13
5.5.140.0130.05320.18
5.5.130.0200.04720.26
5.5.120.0230.04720.33
5.5.110.0170.05320.20
5.5.100.0130.05320.13
5.5.90.0100.06020.22
5.5.80.0230.05020.17
5.5.70.0200.05020.14
5.5.60.0230.05319.99
5.5.50.0200.05320.05
5.5.40.0200.06720.11
5.5.30.0170.05320.20
5.5.20.0170.05320.09
5.5.10.0130.05720.15
5.5.00.0270.04319.96

preferences:
141.29 ms | 1394 KiB | 7 Q