3v4l.org

run code in 300+ PHP versions simultaneously
<?php global $data; ?> <?php if ( empty( $data['footer_show'] ) || (!empty( $data['footer_show'] ) && $data['footer_show'] == 'yes') ) { ?> <footer id="footer"> <div class="container"> <?php //var_dump($data['footer_row1_widget_positions']); //var_dump($data['footer_row2_widget_positions']); //var_dump($data['footer_row1_show']); //var_dump($data['footer_row2_show']); if ( !empty ( $data['footer_row1_widget_positions'] ) ) { if ( (!empty ( $data['footer_row1_show'] ) && $data['footer_row1_show'] == 'yes' ) || empty ( $data['footer_row1_show'] ) ) { echo '<div class="row">'; var_dump(); $footer_row1_widget_positions = json_decode($data['footer_row1_widget_positions'],true); $number_of_columns = key( $footer_row1_widget_positions); $columns_array = $footer_row1_widget_positions ; for ($i = 1; $i <= $number_of_columns; $i++) { echo '<div class="span'.$columns_array[$number_of_columns][0][$i-1].'">'; if ( !dynamic_sidebar('Footer row 1 - widget '.$i.'') ) : endif; echo '</div>'; } echo '</div><!-- end row -->'; } } if ( !empty ( $data['footer_row2_widget_positions'] ) ) { if ( (!empty ( $data['footer_row2_show'] ) && $data['footer_row2_show'] == 'yes' ) || empty ( $data['footer_row2_show'] ) ) { echo '<div class="row">'; $number_of_columns = key( json_decode ( $data['footer_row2_widget_positions'] ) ); $columns_array = json_decode ( $data['footer_row2_widget_positions'] ,true ); for ($i = 1; $i <= $number_of_columns; $i++) { echo '<div class="span'.$columns_array[$number_of_columns][0][$i-1].'">'; if ( !dynamic_sidebar('Footer row 2 - widget '.$i.'') ) : endif; echo '</div>'; } echo '</div><!-- end row -->'; } } ?> <div class="row"> <div class="span12"> <div class="bottom fixclear"> <?php if ( isset( $data['footer_social_icons'] ) && is_array( $data['footer_social_icons'] ) && !empty ( $data['footer_social_icons'][0]['footer_social_icon'] ) ) { $icon_class = ''; if( $data['footer_which_icons_set'] == 'colored' ) { $icon_class = 'colored'; } echo '<ul class="social-icons '.$icon_class.' fixclear">'; echo '<li class="title">'.__('GET SOCIAL', THEMENAME ).'</li>'; // Translate foreach ( $data['footer_social_icons'] as $key=>$icon ){ $link = ''; $target = ''; if ( isset ( $icon['footer_social_link'] ) && is_array ( $icon['footer_social_link'] )) { $link = $icon['footer_social_link']['url']; $target = 'target="'.$icon['footer_social_link']['target'].'"'; } echo '<li class="'.$icon['footer_social_icon'].'"><a href="'.$link.'" '.$target.'>'.$icon['footer_social_title'].'</a></li>'; } echo '</ul>'; } ?> <?php if( $data['copyright_text'] || $data['footer_logo'] ) { ?> <div class="copyright"> <?php if( $data['footer_logo'] ) { echo '<a href="'.home_url().'"><img src="'.$data['footer_logo'].'" alt="'.get_bloginfo('name').'" /></a>'; } if( $data['copyright_text'] ) { echo '<p>'.stripslashes($data['copyright_text']).'</p>'; } ?> </div><!-- end copyright --> <?php } ?> </div><!-- end bottom --> </div> </div><!-- end row --> </div> </footer> <?php } ?> </div><!-- end page_wrapper --> <a href="#" id="totop"><?php echo __('TOP', THEMENAME ); ?></a> <?php // Translate ?> <?php wp_footer(); ?> </body> </html>

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)
8.3.60.0120.00418.55
8.3.50.0160.00422.90
8.3.40.0130.00318.97
8.3.30.0130.01019.09
8.3.20.0000.00820.34
8.3.10.0080.00023.53
8.3.00.0050.00519.38
8.2.180.0140.00716.75
8.2.170.0090.00622.96
8.2.160.0070.00720.47
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0040.01526.16
8.2.120.0030.00521.05
8.2.110.0030.00622.24
8.2.100.0060.00618.28
8.2.90.0040.00419.30
8.2.80.0040.00417.97
8.2.70.0080.00017.75
8.2.60.0060.00618.15
8.2.50.0040.00418.07
8.2.40.0050.00318.47
8.2.30.0070.00018.22
8.2.20.0050.00317.78
8.2.10.0050.00318.35
8.2.00.0020.00517.77
8.1.280.0150.00025.92
8.1.270.0060.00323.82
8.1.260.0060.00326.35
8.1.250.0000.00828.09
8.1.240.0030.00619.39
8.1.230.0110.00019.27
8.1.220.0000.00817.89
8.1.210.0000.00818.77
8.1.200.0030.00617.38
8.1.190.0000.00917.48
8.1.180.0080.00018.10
8.1.170.0050.00318.77
8.1.160.0000.00722.11
8.1.150.0060.00318.88
8.1.140.0030.00517.54
8.1.130.0000.00717.88
8.1.120.0000.00817.55
8.1.110.0090.00017.51
8.1.100.0000.00817.42
8.1.90.0000.00917.44
8.1.80.0050.00317.38
8.1.70.0000.00817.44
8.1.60.0000.00917.66
8.1.50.0040.00417.54
8.1.40.0000.00817.50
8.1.30.0050.00317.53
8.1.20.0080.00017.70
8.1.10.0060.00317.49
8.1.00.0000.01017.54
8.0.300.0000.00718.77
8.0.290.0090.00016.88
8.0.280.0030.00518.58
8.0.270.0080.00417.30
8.0.260.0030.00317.39
8.0.250.0040.00417.01
8.0.240.0030.00517.06
8.0.230.0070.00017.10
8.0.220.0040.00416.92
8.0.210.0040.00417.02
8.0.200.0040.00417.11
8.0.190.0170.00017.11
8.0.180.0020.00517.11
8.0.170.0000.00817.12
8.0.160.0030.00717.09
8.0.150.0040.00416.93
8.0.140.0050.00516.99
8.0.130.0000.00613.44
8.0.120.0050.00316.89
8.0.110.0030.00616.95
8.0.100.0070.00017.00
8.0.90.0000.00716.89
8.0.80.0030.01317.07
8.0.70.0030.00516.84
8.0.60.0000.00816.99
8.0.50.0030.00717.11
8.0.30.0130.00717.17
8.0.20.0140.00817.40
8.0.10.0040.00417.04
8.0.00.0060.01216.87
7.4.330.0000.00515.00
7.4.320.0060.00016.67
7.4.300.0030.00316.52
7.4.290.0000.00716.50
7.4.280.0030.00516.38
7.4.270.0000.00716.61
7.4.260.0070.00016.52
7.4.250.0040.00416.51
7.4.240.0030.00516.55
7.4.230.0040.00416.63
7.4.220.0040.01316.44
7.4.210.0030.01416.52
7.4.200.0050.00216.43
7.4.160.0040.01216.52
7.4.150.0070.01417.40
7.4.140.0130.00817.86
7.4.130.0110.00816.66
7.4.120.0070.01016.53
7.4.110.0150.00416.44
7.4.100.0110.00816.54
7.4.90.0110.00616.52
7.4.80.0040.01619.39
7.4.70.0130.00316.50
7.4.60.0100.01016.64
7.4.50.0030.00616.39
7.4.40.0080.00916.61
7.4.30.0000.01616.47
7.4.00.0030.01014.93
7.3.330.0030.00313.18
7.3.320.0000.00613.27
7.3.310.0090.00016.48
7.3.300.0070.00016.47
7.3.290.0000.01316.38
7.3.280.0100.00916.43
7.3.270.0070.01117.40
7.3.260.0100.00716.61
7.3.250.0150.00616.53
7.3.240.0140.00316.60
7.3.230.0110.00816.39
7.3.210.0140.00316.63
7.3.200.0060.01019.39
7.3.190.0100.00716.63
7.3.180.0030.01716.35
7.3.170.0110.00616.55
7.3.160.0090.00616.64
7.2.330.0140.00416.41
7.2.320.0070.01016.44
7.2.310.0100.00716.83
7.2.300.0030.01416.47
7.2.290.0090.00916.36
7.2.60.0110.00916.89
7.1.200.0140.00015.59
7.1.100.0090.01317.79
7.1.70.0090.00616.93
7.1.60.0080.00419.40
7.1.50.0110.02017.03
7.1.00.0130.06722.58
7.0.200.0040.00715.00
7.0.140.0100.07022.12
7.0.60.0000.05319.98
7.0.50.0100.07317.89
7.0.40.0270.04020.35
7.0.30.0300.06020.17
7.0.20.0200.05720.04
7.0.10.0100.08320.30
7.0.00.0070.07720.16
5.6.280.0000.07320.88
5.6.210.0070.08020.49
5.6.200.0070.07718.21
5.6.190.0100.07720.77
5.6.180.3930.04320.61
5.6.170.0170.04320.51
5.6.160.0030.07020.33
5.6.150.0030.05018.15
5.6.140.0070.08318.21
5.6.130.0000.08718.15
5.6.120.0030.07021.16
5.6.110.0130.07721.05
5.6.100.0130.08020.98
5.6.90.0030.04320.98
5.6.80.0130.06020.52
5.5.350.0000.08320.38
5.5.340.0100.03717.98
5.5.330.0070.07320.46
5.5.320.0270.07320.29
5.5.310.0300.04320.17
5.5.300.0030.04017.90
5.5.290.0070.06717.96
5.5.280.0070.08320.98
5.5.270.0100.08720.81
5.5.260.0070.03720.81
5.5.250.0000.04320.52
5.5.240.0100.03720.25
5.4.450.0300.04019.50
5.4.440.0470.04319.24
5.4.430.0230.04719.38
5.4.420.0270.04719.40
5.4.410.0200.04019.26
5.4.400.0230.03718.92
5.4.390.0200.04019.09
5.4.380.0400.04718.70
5.4.370.0170.06318.73
5.4.360.0330.05018.50
5.4.350.0570.05318.55
5.4.340.0270.05318.70
5.4.320.0090.03312.48
5.4.310.0110.03312.47
5.4.300.0030.03912.48
5.4.290.0050.04012.48
5.4.280.0060.03512.37
5.4.270.0070.03712.37
5.4.260.0040.03912.38
5.4.250.0030.04012.38
5.4.240.0040.03712.37
5.4.230.0080.03412.36
5.4.220.0080.03412.37
5.4.210.0060.03512.36
5.4.200.0040.03812.36
5.4.190.0050.03712.36
5.4.180.0050.03612.36
5.4.170.0090.03312.37
5.4.160.0060.03412.37
5.4.150.0030.03812.36
5.4.140.0050.03712.05
5.4.130.0020.03812.04
5.4.120.0060.03511.99
5.4.110.0050.03611.99
5.4.100.0090.03111.99
5.4.90.0070.03511.99
5.4.80.0080.03411.99
5.4.70.0070.03411.98
5.4.60.0110.02911.99
5.4.50.0080.03411.98
5.4.40.0040.03611.97
5.4.30.0100.03211.97
5.4.20.0080.03311.97
5.4.10.0030.03711.97
5.4.00.0030.03911.46
5.3.290.0090.03612.80
5.3.280.0070.03712.70
5.3.270.0060.03912.72
5.3.260.0080.03512.72
5.3.250.0070.03512.72
5.3.240.0050.03712.72
5.3.230.0050.03912.70
5.3.220.0060.03712.68
5.3.210.0090.03512.68
5.3.200.0080.03512.68
5.3.190.0070.03612.68
5.3.180.0110.03112.67
5.3.170.0060.03612.67
5.3.160.0040.03812.67
5.3.150.0040.03812.67
5.3.140.0050.03712.66
5.3.130.0090.03612.66
5.3.120.0070.03712.66
5.3.110.0070.03712.65
5.3.100.0060.03712.12
5.3.90.0030.03912.10
5.3.80.0060.03512.08
5.3.70.0070.03512.10
5.3.60.0030.03812.07
5.3.50.0050.03612.02
5.3.40.0060.03712.02
5.3.30.0070.03411.98
5.3.20.0060.03511.76
5.3.10.0060.03411.72
5.3.00.0080.03511.71
5.2.170.0040.0309.22
5.2.160.0020.0319.21
5.2.150.0020.0339.21
5.2.140.0070.0279.21
5.2.130.0050.0289.17
5.2.120.0070.0259.18
5.2.110.0060.0289.18
5.2.100.0020.0319.18
5.2.90.0030.0309.17
5.2.80.0030.0329.18
5.2.70.0050.0309.17
5.2.60.0090.0289.13
5.2.50.0070.0369.09
5.2.40.0060.0279.07
5.2.30.0060.0289.05
5.2.20.0040.0299.04
5.2.10.0060.0268.96
5.2.00.0030.0308.81
5.1.60.0020.0268.10
5.1.50.0070.0218.10
5.1.40.0020.0268.08
5.1.30.0030.0278.43
5.1.20.0020.0298.45
5.1.10.0060.0248.18
5.1.00.0070.0238.17
5.0.50.0040.0206.67
5.0.40.0030.0196.52
5.0.30.0050.0296.34
5.0.20.0030.0196.31
5.0.10.0040.0276.29
5.0.00.0020.0366.27
4.4.90.0010.0204.78
4.4.80.0020.0174.75
4.4.70.0020.0164.76
4.4.60.0050.0134.75
4.4.50.0020.0174.77
4.4.40.0050.0234.71
4.4.30.0030.0164.76
4.4.20.0070.0124.85
4.4.10.0050.0134.85
4.4.00.0030.0254.75
4.3.110.0020.0164.66
4.3.100.0030.0144.66
4.3.90.0020.0154.64
4.3.80.0040.0244.59
4.3.70.0060.0114.63
4.3.60.0010.0164.62
4.3.50.0020.0164.63
4.3.40.0030.0244.54
4.3.30.0020.0163.34
4.3.20.0010.0163.32
4.3.10.0000.0173.27
4.3.00.0070.01313.25

preferences:
41.1 ms | 401 KiB | 5 Q