3v4l.org

run code in 300+ PHP versions simultaneously
<?php get_header(); ?> <?php $sidebar_exists = true; $container_class = ''; $timeline_icon_class = ''; $post_class = ''; $content_class = ''; $sidebar_exists = false; $sidebar_left = ''; $double_sidebars = false; $sidebar_1 = Avada()->settings->get( 'search_sidebar' ); $sidebar_2 = Avada()->settings->get( 'search_sidebar_2' ); if( $sidebar_1 != 'None' && $sidebar_2 != 'None' ) { $double_sidebars = true; } if( $sidebar_1 != 'None' ) { $sidebar_exists = true; } else { $sidebar_exists = false; } if( ! $sidebar_exists ) { $content_css = 'width:100%'; $sidebar_css = 'display:none'; $content_class= 'full-width'; $sidebar_exists = false; } elseif(Avada()->settings->get( 'search_sidebar_position' ) == 'Left') { $content_css = 'float:right;'; $sidebar_css = 'float:left;'; $sidebar_left = 1; } elseif(Avada()->settings->get( 'search_sidebar_position' ) == 'Right') { $content_css = 'float:left;'; $sidebar_css = 'float:right;'; $sidebar_left = 2; } if($double_sidebars == true) { $content_css = 'float:left;'; $sidebar_css = 'float:left;'; $sidebar_2_css = 'float:left;'; } else { $sidebar_left = 1; } ?> <div id="content" class="<?php echo $content_class; ?>" style="<?php echo $content_css; ?>"> <?php if ( have_posts() && strlen( trim(get_search_query()) ) != 0 ) : ?> <?php if ( Avada()->settings->get( 'search_new_search_position' ) == 'bottom' ) { get_template_part( 'templates/blog', 'layout' ); ?> <div class="fusion-clearfix"></div> <?php } ?> <?php if ( Avada()->settings->get( 'search_new_search_position' ) != 'hidden' ) : ?> <div class="search-page-search-form search-page-search-form-<?php echo Avada()->settings->get( 'search_new_search_position' ); ?>"> <?php // Render the post title echo avada_render_post_title( 0, FALSE, __( 'Nog iets opzoeken?', 'Avada' ) ); ?> <p><?php echo __('Als u niet gevonden heeft wat u zocht, probeer het gerust opnieuw!', 'Avada'); ?></p> <form class="searchform seach-form" role="search" method="get" action="<?php echo home_url( '/' ); ?>"> <div class="search-table"> <div class="search-field"> <input type="text" value="" name="s" class="s" placeholder="<?php _e( 'Zoeken...', 'Avada' ); ?>"/> </div> <div class="search-button"> <input type="submit" class="searchsubmit" value="&#xf002;" /> </div> </div> </form> </div> <?php endif; ?> <?php if ( Avada()->settings->get( 'search_new_search_position' ) == 'top' || Avada()->settings->get( 'search_new_search_position' ) == 'hidden' ) { get_template_part( 'templates/blog', 'layout' ); } ?> <?php else: ?> <div class="post-content"> <?php $title = __( 'We konden niets vinden!', 'Avada' ); echo do_shortcode( sprintf( '[title size="2" content_align="left" style_type="default"]%s[/title]', $title ) ); ?> <div class="error-page"> <?php // First column echo do_shortcode( sprintf( '[one_third last="no" spacing="yes"]<h1 class="oops %s">%s</h1>[/one_third]', ( $sidebar_css != 'display:none') ? 'sidebar-oops' : '', __( 'Oeps!', 'Avada' ) ) ); // Second column $subheading = sprintf( '<h3>%s</h3>', __( 'Hier zijn een aantal bruikbare links:', 'Avada' ) ); $iconcolor = strtolower( Avada()->settings->get( 'checklist_icons_color' ) ); $list_css = sprintf( '<style type="text/css">.post-content #checklist-1 li:before{color:%s !important;}.rtl .post-content #checklist-1 li:after{color:%s !important;}</style>', $iconcolor, $iconcolor ); $useful_links_menu = wp_nav_menu( array( 'theme_location' => '404_pages', 'depth' => 1, 'container' => false, 'menu_id' => 'checklist-1', 'menu_class' => 'list-icon circle-yes list-icon-arrow', 'echo' => 0 ) ); echo do_shortcode( sprintf( '[one_third last="no" spacing="yes" class="useful-links"]%s%s%s[/one_third]', $subheading, $list_css, $useful_links_menu ) ); // Third column $subheading = sprintf( '<h3>%s</h3>', __( 'Probeer opnieuw!', 'Avada' ) ); $info_text = sprintf( '<p>%s</p>', __( 'U kunt hier uw zoekopdracht aanpassen:', 'Avada' ) ); $search_form = get_search_form( FALSE ); echo do_shortcode( sprintf( '[one_third last="yes" spacing="yes"]%s%s%s[/one_third]', $subheading, $info_text, $search_form ) ); ?> </div> </div> <?php endif; ?> </div> <?php if( $sidebar_exists == true ): ?> <?php wp_reset_query(); ?> <div id="sidebar" class="sidebar" style="<?php echo $sidebar_css; ?>"> <?php if($sidebar_left == 1) { generated_dynamic_sidebar($sidebar_1); } if($sidebar_left == 2) { generated_dynamic_sidebar_2($sidebar_2); } ?> </div> <?php if( $double_sidebars == true ): ?> <div id="sidebar-2" class="sidebar" style="<?php echo $sidebar_2_css; ?>"> <?php if($sidebar_left == 1) { generated_dynamic_sidebar_2($sidebar_2); } if($sidebar_left == 2) { generated_dynamic_sidebar($sidebar_1); } ?> </div> <?php endif; ?> <?php endif; ?> <?php get_footer(); // Omit closing PHP tag to avoid "Headers already sent" issues.

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.70.0150.01216.63
8.3.60.0040.01516.88
8.3.50.0130.00521.29
8.3.40.0070.00718.92
8.3.30.0070.00718.84
8.3.20.0040.00420.46
8.3.10.0040.00423.41
8.3.00.0080.00019.56
8.2.180.0090.00616.88
8.2.170.0030.01322.96
8.2.160.0140.00720.52
8.2.150.0030.00624.18
8.2.140.0000.01024.66
8.2.130.0080.00026.16
8.2.120.0090.00017.50
8.2.110.0060.00321.99
8.2.100.0090.00317.63
8.2.90.0000.00919.22
8.2.80.0030.00617.97
8.2.70.0040.00417.63
8.2.60.0080.00018.03
8.2.50.0060.00318.07
8.2.40.0000.00921.25
8.2.30.0000.00818.19
8.2.20.0040.00417.86
8.2.10.0080.00018.14
8.2.00.0080.00018.15
8.1.280.0030.01125.92
8.1.270.0060.00320.29
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00322.42
8.1.230.0100.00317.48
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0070.00317.47
8.1.190.0040.00417.23
8.1.180.0070.00018.10
8.1.170.0080.00018.58
8.1.160.0000.00822.06
8.1.150.0040.00418.89
8.1.140.0080.00017.36
8.1.130.0050.00217.69
8.1.120.0050.00217.36
8.1.110.0040.00417.34
8.1.100.0020.00517.35
8.1.90.0040.00417.47
8.1.80.0040.00417.35
8.1.70.0000.00717.46
8.1.60.0000.00817.54
8.1.50.0000.00917.47
8.1.40.0000.00817.58
8.1.30.0000.00817.62
8.1.20.0040.00417.64
8.1.10.0050.00317.55
8.1.00.0050.00217.45
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0030.00318.44
8.0.270.0040.00417.19
8.0.260.0030.00317.36
8.0.250.0070.00017.04
8.0.240.0070.00317.08
8.0.230.0000.00716.96
8.0.220.0000.00717.03
8.0.210.0000.00916.98
8.0.200.0030.00317.06
8.0.190.0000.00816.98
8.0.180.0000.00817.03
8.0.170.0030.00517.04
8.0.160.0040.00417.11
8.0.150.0030.00417.02
8.0.140.0060.00316.86
8.0.130.0040.00413.44
8.0.120.0000.00816.99
8.0.110.0020.00516.99
8.0.100.0000.00716.97
8.0.90.0000.00717.03
8.0.80.0100.00716.97
8.0.70.0070.00016.83
8.0.60.0070.00017.03
8.0.50.0050.00216.85
8.0.30.0100.00817.24
8.0.20.0080.01017.42
8.0.10.0040.00416.87
8.0.00.0080.01116.84
7.4.330.0000.00615.08
7.4.320.0040.00416.61
7.4.300.0030.00316.59
7.4.290.0000.00716.61
7.4.280.0050.00216.70
7.4.270.0000.00716.57
7.4.260.0040.00416.36
7.4.250.0040.00416.67
7.4.240.0010.00616.59
7.4.230.0040.00416.46
7.4.220.0040.01416.69
7.4.210.0070.00816.57
7.4.200.0000.00716.56
7.4.160.0060.00916.50
7.4.150.0110.00617.40
7.4.140.0040.01517.86
7.4.130.0130.00816.57
7.4.120.0050.01316.60
7.4.110.0130.01016.73
7.4.100.0150.00816.67
7.4.90.0030.01316.43
7.4.80.0130.01019.39
7.4.70.0070.01016.41
7.4.60.0100.00616.42
7.4.50.0000.00916.40
7.4.40.0120.01216.74
7.4.30.0120.00616.67
7.4.10.0070.01114.98
7.4.00.0110.00615.09
7.3.330.0030.00313.13
7.3.320.0030.00313.22
7.3.310.0080.00016.43
7.3.300.0030.00316.25
7.3.290.0000.00716.26
7.3.280.0130.00416.36
7.3.270.0120.00617.40
7.3.260.0070.01116.42
7.3.250.0100.01016.41
7.3.240.0030.01516.24
7.3.230.0100.00716.56
7.3.210.0060.01316.38
7.3.200.0090.00616.49
7.3.190.0090.00916.50
7.3.180.0130.01016.49
7.3.170.0030.01816.53
7.3.160.0100.01316.44
7.3.130.0070.00714.93
7.3.120.0080.00914.91
7.3.110.0070.01014.88
7.3.100.0030.01214.79
7.3.90.0060.00814.98
7.3.80.0050.00914.96
7.3.70.0020.01014.95
7.3.60.0020.00914.81
7.3.50.0080.00414.94
7.3.40.0060.00514.97
7.3.30.0090.00814.76
7.3.20.0060.00816.67
7.3.10.0070.00616.64
7.3.00.0080.00516.42
7.2.330.0190.00916.70
7.2.320.0130.01016.41
7.2.310.0080.00916.36
7.2.300.0110.00716.71
7.2.290.0120.00916.38
7.2.260.0030.01614.83
7.2.250.0050.01215.01
7.2.240.0070.00714.85
7.2.230.0060.00715.04
7.2.220.0050.00414.95
7.2.210.0080.00614.99
7.2.200.0070.00815.04
7.2.190.0090.00514.96
7.2.180.0050.00915.04
7.2.170.0040.01214.97
7.2.160.0060.01015.01
7.2.150.0090.00516.88
7.2.140.0060.00916.80
7.2.130.0050.00916.73
7.2.120.0060.01016.78
7.2.110.0040.00916.66
7.2.100.0080.00816.57
7.2.90.0070.00616.86
7.2.80.0060.01016.73
7.2.70.0060.00916.76
7.2.60.0040.01316.80
7.2.50.0030.01216.74
7.2.40.0050.01116.80
7.2.30.0070.00816.86
7.2.20.0050.00916.68
7.2.10.0030.00916.79
7.2.00.0070.00817.32
7.1.330.0030.01115.53
7.1.320.0020.01315.71
7.1.310.0080.00815.59
7.1.300.0030.01015.64
7.1.290.0090.00415.50
7.1.280.0060.00715.41
7.1.270.0070.00715.56
7.1.260.0070.00715.65
7.1.250.0050.00815.57
7.1.240.0080.00815.46
7.1.230.0070.00715.64
7.1.220.0060.00915.43
7.1.210.0040.00915.73
7.1.200.0080.00715.63
7.1.190.0060.01015.46
7.1.180.0060.00715.46
7.1.170.0070.01015.60
7.1.160.0040.01015.61
7.1.150.0050.00615.53
7.1.140.0030.00815.42
7.1.130.0090.00515.58
7.1.120.0050.00915.75
7.1.110.0080.00815.58
7.1.100.0030.00716.36
7.1.90.0040.01115.52
7.1.80.0070.00515.71
7.1.70.0100.00316.07
7.1.60.0060.00617.08
7.1.50.0030.00916.00
7.1.40.0050.00715.73
7.1.30.0060.00815.59
7.1.20.0060.00515.63
7.1.10.0060.00515.65
7.1.00.0030.03317.89
7.0.330.0070.00515.10
7.0.320.0050.00515.20
7.0.310.0060.00815.20
7.0.300.0090.00715.32
7.0.290.0020.01015.32
7.0.280.0050.00915.34
7.0.270.0040.00715.39
7.0.260.0030.01115.36
7.0.250.0070.01015.36
7.0.240.0050.00715.41
7.0.230.0060.00615.34
7.0.220.0060.00515.21
7.0.210.0020.01115.18
7.0.200.0060.00515.66
7.0.190.0060.00815.17
7.0.180.0030.00815.28
7.0.170.0070.00715.13
7.0.160.0090.00615.24
7.0.150.0060.00815.31
7.0.140.0030.01015.16
7.0.130.0050.00515.19
7.0.120.0070.00815.20
7.0.110.0070.00515.29
7.0.100.0050.01215.36
7.0.90.0040.00715.26
7.0.80.0060.00615.46
7.0.70.0060.00815.10
7.0.60.0070.03416.92
7.0.50.0050.02816.15
7.0.40.0080.03215.69
7.0.30.0230.02915.58
7.0.20.0090.03315.55
7.0.10.0090.02515.58
7.0.00.0100.02715.61
5.6.400.0060.01014.02
5.6.390.0020.00914.33
5.6.380.0080.00514.29
5.6.370.0050.01314.34
5.6.360.0050.00814.29
5.6.350.0070.00914.15
5.6.340.0090.00714.21
5.6.330.0000.01414.12
5.6.320.0060.00914.26
5.6.310.0100.00614.32
5.6.300.0080.00613.86
5.6.290.0030.01014.38
5.6.280.0050.02116.50
5.6.270.0060.00814.32
5.6.260.0050.01314.24
5.6.250.0050.01114.31
5.6.240.0050.00814.20
5.6.230.0090.00513.93
5.6.220.0050.01014.25
5.6.210.0040.03216.41
5.6.200.0040.03215.46
5.6.190.0110.03016.27
5.6.180.0050.03316.29
5.6.170.0110.02016.28
5.6.160.0100.02316.34
5.6.150.0090.01715.44
5.6.140.0030.02315.55
5.6.130.0050.02015.62
5.6.120.0100.01916.45
5.6.110.0020.02416.42
5.6.100.0060.03116.46
5.6.90.0060.03016.29
5.6.80.0040.03116.29
5.6.70.1520.01616.27
5.6.60.0070.00814.01
5.6.50.0050.00613.91
5.6.40.0050.00813.95
5.6.30.0050.00814.27
5.6.20.0020.01414.16
5.6.10.0090.00714.09
5.6.00.0070.00514.13
5.5.380.0070.00714.01
5.5.370.0060.00913.81
5.5.360.0080.00613.98
5.5.350.0070.01616.26
5.5.340.0030.02215.38
5.5.330.0120.02516.26
5.5.320.0130.02916.12
5.5.310.0150.03316.18
5.5.300.0030.03515.36
5.5.290.0030.03015.45
5.5.280.0030.02816.37
5.5.270.0040.02016.24
5.5.260.0030.03716.38
5.5.250.0070.02916.11
5.5.240.0100.02216.07
5.5.230.0060.00814.05
5.5.220.0030.01213.99
5.5.210.0040.00913.94
5.5.200.0020.01213.92
5.5.190.0080.00714.15
5.5.180.0070.01014.03
5.5.170.0070.00414.03
5.5.160.0060.00613.81
5.5.150.0010.01314.04
5.5.140.0020.01314.03
5.5.130.0050.01014.07
5.5.120.0040.00614.05
5.5.110.0090.00313.91
5.5.100.0050.00713.96
5.5.90.0030.01314.04
5.5.80.0030.01113.67
5.5.70.0050.00913.92
5.5.60.0060.00714.06
5.5.50.0070.00713.97
5.5.40.0000.01013.90
5.5.30.0080.00413.79
5.5.20.0020.01114.07
5.5.10.0060.00414.08
5.5.00.0070.00813.97
5.4.450.0080.02414.27
5.4.440.0190.02314.27
5.4.430.0240.02114.19
5.4.420.0090.02114.28
5.4.410.0130.01814.27
5.4.400.0080.02214.22
5.4.390.0070.02113.99
5.4.380.0090.01914.18
5.4.370.0090.02213.92
5.4.360.0160.02114.11
5.4.350.0130.02514.25
5.4.340.0090.02114.16
5.4.330.0050.00411.55
5.4.320.0120.02114.21
5.4.310.0210.02014.09
5.4.300.0150.02114.08
5.4.290.0110.01714.07
5.4.280.0100.02514.13
5.4.270.0080.01814.08
5.4.260.0070.02414.15
5.4.250.0200.02814.18
5.4.240.0050.02414.19
5.4.230.0060.02214.13
5.4.220.0080.02313.98
5.4.210.0220.02814.05
5.4.200.0190.01913.33
5.4.190.0050.02214.01
5.4.180.0030.02914.20
5.4.170.0220.01914.13
5.4.160.0100.02814.02
5.4.150.0250.02714.03
5.4.140.0210.02413.25
5.4.130.0290.02213.25
5.4.120.0300.02013.18
5.4.110.0050.02213.18
5.4.100.0050.02413.14
5.4.90.0080.02013.26
5.4.80.0120.01613.33
5.4.70.0040.02513.31
5.4.60.0060.02413.23
5.4.50.0090.02013.32
5.4.40.0100.01813.20
5.4.30.0080.02513.22
5.4.20.0080.01913.16
5.4.10.0050.02013.13
5.4.00.0040.02413.07

preferences:
44.4 ms | 401 KiB | 5 Q