3v4l.org

run code in 300+ PHP versions simultaneously
<div class="sidebar" id=""> <a href="<?php echo get_settings('home'); ?>"><img src="<?php bloginfo('template_directory'); ?>/_/img/logo.svg"></a> <nav> <!-- <ul><?php $args = array( 'orderby' => 'none', 'order' => 'ASC', 'hide_empty' => 0, 'use_desc_for_title' => 0, 'hierarchical' => 1, 'title_li' => '', 'taxonomy' => 'project_category', ); wp_list_categories($args); ?> </ul> --> <?php //$current_term = get_query_var( 'term' ); echo $term; ?> <ul class="projectmenu"> <?php $custom_terms = get_terms('project_category', 'hide_empty=0'); $c = '0'; foreach($custom_terms as $custom_term) { wp_reset_query(); $args = array('post_type' => 'project', 'tax_query' => array( array( 'taxonomy' => 'project_category', 'field' => 'slug', 'terms' => $custom_term->slug, ), ), ); $loop = new WP_Query($args); if($loop->have_posts()) { $c++; /* ?> <li><label for="<?php echo 'menu_'.$c.'';?>"><span><?php echo''.$custom_term->name.''; ?></span></label> <input type="radio" name="category" id="<?php echo 'menu_'.$c.'';?>" value="your value" <?php if(isset($_POST['category'])) echo "checked='checked'"; ?> /> <?php */ echo ' <li><label for="menu_'.$c.'"><span>'.$custom_term->name.'</span></label> <input type="radio" name="category" id="menu_'.$c.'" /> '; ?> <ul class="submenu"> <?php while($loop->have_posts()) : $loop->the_post(); echo '<li><a href="'.get_permalink().'">'.get_the_title().'</a></li>'; endwhile; ?> </ul> <?php } } // endif // } //endif ?> </li> </ul> <!-- <ul> <li><a href="#">Fotografie</a></li> <ul class="submenu"> <li><a href="#">long time no see</a></li> <li><a href="#">on the rocks</a></li> <li><a href="#">quite simple</a></li> <li><a href="#">perfect day</a></li> </ul> </ul> --> <?php wp_nav_menu(array('menu' => 'Hauptnavigation'));?> </nav> </div>

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.0100.00616.63
8.3.50.0110.01121.87
8.3.40.0070.01018.97
8.3.30.0070.00719.09
8.3.20.0040.00420.25
8.3.10.0040.00423.51
8.3.00.0050.00320.55
8.2.180.0140.01018.41
8.2.170.0110.00322.96
8.2.160.0140.00722.14
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0060.00326.16
8.2.120.0040.00422.30
8.2.110.0030.00722.11
8.2.100.0040.00817.72
8.2.90.0000.00719.22
8.2.80.0080.00017.97
8.2.70.0050.00317.38
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0060.00618.02
8.2.30.0020.00517.92
8.2.20.0040.00417.75
8.2.10.0000.00717.70
8.2.00.0000.00817.69
8.1.280.0060.01625.92
8.1.270.0000.00823.97
8.1.260.0040.00426.35
8.1.250.0090.00928.09
8.1.240.0040.00423.83
8.1.230.0080.00319.15
8.1.220.0050.00317.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.50
8.1.180.0030.00518.10
8.1.170.0000.00818.52
8.1.160.0040.00421.93
8.1.150.0000.00820.33
8.1.140.0000.00717.34
8.1.130.0000.00717.78
8.1.120.0030.00617.40
8.1.110.0000.00817.26
8.1.100.0000.00717.23
8.1.90.0000.00717.36
8.1.80.0000.00717.21
8.1.70.0030.00317.34
8.1.60.0020.00517.42
8.1.50.0000.00817.43
8.1.40.0040.00417.52
8.1.30.0000.00817.60
8.1.20.0000.00817.53
8.1.10.0030.00617.45
8.1.00.0000.00817.47
8.0.300.0040.00418.77
8.0.290.0080.00017.18
8.0.280.0070.00018.47
8.0.270.0040.00417.16
8.0.260.0000.00616.91
8.0.250.0030.00316.96
8.0.240.0030.00516.92
8.0.230.0030.00316.88
8.0.220.0000.00716.80
8.0.210.0000.00716.85
8.0.200.0000.00716.85
8.0.190.0000.00917.05
8.0.180.0040.00416.89
8.0.170.0060.00316.86
8.0.160.0040.00416.86
8.0.150.0000.00716.87
8.0.140.0040.00416.88
8.0.130.0000.00613.31
8.0.120.0040.00416.78
8.0.110.0030.00716.75
8.0.100.0000.00716.72
8.0.90.0000.00716.82
8.0.80.0190.00316.95
8.0.70.0030.00616.88
8.0.60.0030.00516.78
8.0.50.0040.00416.95
8.0.30.0100.00917.14
8.0.20.0090.01017.40
8.0.10.0000.00717.04
8.0.00.0090.00916.74
7.4.330.0050.00015.00
7.4.320.0060.00016.43
7.4.300.0000.00616.50
7.4.290.0000.00716.38
7.4.280.0070.00016.46
7.4.270.0000.00716.56
7.4.260.0030.00316.54
7.4.250.0030.00316.48
7.4.240.0000.00716.50
7.4.230.0030.00316.65
7.4.220.0110.00716.43
7.4.210.0070.00816.55
7.4.200.0040.00316.66
7.4.190.0000.00716.64
7.4.160.0100.01016.51
7.4.150.0090.00917.40
7.4.140.0130.00517.86
7.4.130.0060.01416.51
7.4.120.0080.01116.51
7.4.110.0070.01016.44
7.4.100.0160.00316.47
7.4.90.0000.02416.35
7.4.80.0130.00916.44
7.4.70.0060.00916.55
7.4.60.0060.01116.49
7.4.50.0040.00416.56
7.4.40.0060.00922.77
7.4.30.0130.00316.73
7.4.10.0100.01014.70
7.4.00.0050.01014.89
7.3.330.0020.00213.15
7.3.320.0020.00213.08
7.3.310.0070.00016.37
7.3.300.0000.00716.20
7.3.290.0100.01016.24
7.3.280.0080.01016.28
7.3.270.0100.00717.40
7.3.260.0090.00916.23
7.3.250.0110.00616.36
7.3.240.0070.01416.50
7.3.230.0030.01416.39
7.3.210.0100.00716.40
7.3.200.0030.01319.39
7.3.190.0120.00416.43
7.3.180.0110.00516.23
7.3.170.0130.00316.58
7.3.160.0060.01016.42
7.3.130.0000.01814.88
7.3.120.0060.01014.77
7.3.110.0080.01214.97
7.3.100.0120.01214.95
7.3.90.0040.00714.87
7.3.80.0000.01014.82
7.3.70.0080.00814.45
7.3.60.0000.01514.67
7.3.50.0040.01414.93
7.3.40.0070.00414.66
7.3.30.0060.00914.65
7.3.20.0000.01416.71
7.3.10.0030.00816.51
7.3.00.0050.00716.62
7.2.330.0060.01316.46
7.2.320.0070.01016.34
7.2.310.0070.01016.79
7.2.300.0120.00816.48
7.2.290.0130.00316.52
7.2.260.0070.01014.73
7.2.250.0020.01315.16
7.2.240.0060.00915.14
7.2.230.0070.00715.22
7.2.220.0030.00914.87
7.2.210.0100.01014.94
7.2.200.0100.00315.06
7.2.190.0030.01414.73
7.2.180.0040.01515.12
7.2.170.0060.00614.91
7.2.160.0080.00414.87
7.2.150.0070.00416.99
7.2.140.0030.01216.76
7.2.130.0050.00916.74
7.2.120.0030.01016.77
7.2.110.0050.00616.82
7.2.100.0050.00616.77
7.2.90.0080.00716.92
7.2.80.0060.00916.78
7.2.70.0080.00616.70
7.2.60.0060.00816.83
7.2.50.0080.00516.88
7.2.40.0050.01016.74
7.2.30.0030.00916.69
7.2.20.0080.00516.75
7.2.10.0140.00416.72
7.2.00.0060.00817.41
7.1.330.0090.00615.77
7.1.320.0070.00415.44
7.1.310.0040.01415.55
7.1.300.0040.01515.69
7.1.290.0030.00915.50
7.1.280.0070.00715.86
7.1.270.0070.00315.68
7.1.260.0060.01015.65
7.1.250.0060.00915.78
7.1.240.0130.00315.52
7.1.230.0030.01115.52
7.1.220.0090.00615.61
7.1.210.0050.00815.59
7.1.200.0080.00315.51
7.1.190.0060.00515.50
7.1.180.0000.01315.63
7.1.170.0040.01015.57
7.1.160.0070.00715.51
7.1.150.0050.00715.70
7.1.140.0050.01015.56
7.1.130.0130.00215.41
7.1.120.0080.00815.66
7.1.110.0120.00815.71
7.1.100.0070.00616.16
7.1.90.0060.00815.54
7.1.80.0050.00915.48
7.1.70.0060.00616.04
7.1.60.0070.01116.77
7.1.50.0050.00915.87
7.1.40.0060.00615.58
7.1.30.0010.00815.63
7.1.20.0060.00715.67
7.1.10.0090.00715.52
7.1.00.0010.03217.87
7.0.330.0050.00715.34
7.0.320.0090.00315.11
7.0.310.0090.00615.16
7.0.300.0080.00515.26
7.0.290.0060.00615.40
7.0.280.0060.00715.25
7.0.270.0070.00915.22
7.0.260.0070.01115.17
7.0.250.0070.00515.29
7.0.240.0050.00915.30
7.0.230.0080.00615.32
7.0.220.0050.00915.20
7.0.210.0060.00715.20
7.0.200.0050.00515.63
7.0.190.0070.00915.30
7.0.180.0050.00615.13
7.0.170.0060.00815.10
7.0.160.0050.00815.42
7.0.150.0070.00715.40
7.0.140.0060.02817.54
7.0.130.0070.00615.42
7.0.120.0060.00615.21
7.0.110.0070.00315.29
7.0.100.0070.02016.77
7.0.90.0080.01916.90
7.0.80.0070.01516.92
7.0.70.0080.02116.78
7.0.60.0080.01716.94
7.0.50.0080.01516.97
7.0.40.0070.01415.61
7.0.30.0030.01615.44
7.0.20.0040.02015.55
7.0.10.0050.01815.65
7.0.00.0040.01615.52
5.6.400.0060.00614.37
5.6.390.0060.00313.85
5.6.380.0080.00314.14
5.6.370.0070.00514.26
5.6.360.0100.00514.08
5.6.350.0030.01014.24
5.6.340.0050.00814.09
5.6.330.0120.00314.24
5.6.320.0030.01014.28
5.6.310.0050.01014.28
5.6.300.0030.01014.07
5.6.290.0080.00514.19
5.6.280.0020.03416.34
5.6.270.0060.00714.45
5.6.260.0060.00613.96
5.6.250.0080.02616.23
5.6.240.0050.01716.16
5.6.230.0070.01916.41
5.6.220.0060.01616.30
5.6.210.0050.02016.19
5.6.200.0040.01916.41
5.6.190.0060.01816.35
5.6.180.0050.01716.50
5.6.170.0050.01816.58
5.6.160.0040.01816.34
5.6.150.0070.02716.38
5.6.140.0100.01316.49
5.6.130.0070.01916.37
5.6.120.0030.02116.36
5.6.110.0020.02116.38
5.6.100.0070.01516.44
5.6.90.0050.03416.41
5.6.80.0050.03016.28
5.6.70.0020.02116.23
5.6.60.0060.01716.24
5.6.50.0070.02816.22
5.6.40.0050.03116.01
5.6.30.0050.01716.26
5.6.20.0040.01616.10
5.6.10.0110.02216.21
5.6.00.0070.01716.19
5.5.380.0040.02415.31
5.5.370.0060.02815.27
5.5.360.0020.02115.31
5.5.350.0030.01815.26
5.5.340.0080.01715.29
5.5.330.0030.02015.27
5.5.320.0060.01415.40
5.5.310.0010.01915.41
5.5.300.0060.01815.50
5.5.290.0040.01915.43
5.5.280.0040.02015.42
5.5.270.0060.03315.28
5.5.260.0050.01915.30
5.5.250.0030.02415.31
5.5.240.0060.01415.09
5.5.230.0030.02015.18
5.5.220.0020.02315.17
5.5.210.0070.01915.19
5.5.200.0060.01815.03
5.5.190.0080.02815.05
5.5.180.0070.01515.11
5.5.170.0070.00412.46
5.5.160.0040.02015.18
5.5.150.0040.02215.12
5.5.140.0010.02915.09
5.5.130.0050.02815.19
5.5.120.0030.01615.20
5.5.110.0040.02015.02
5.5.100.0080.02915.11
5.5.90.0060.01515.06
5.5.80.0040.01715.17
5.5.70.0050.03015.09
5.5.60.0020.03515.07
5.5.50.0050.03214.97
5.5.40.0050.03014.96
5.5.30.0070.02315.18
5.5.20.0070.01815.05
5.5.10.0070.02815.00
5.5.00.0070.02815.05
5.4.450.0030.02014.43
5.4.440.0030.01614.44
5.4.430.0030.03014.43
5.4.420.0060.02214.40
5.4.410.0030.02714.43
5.4.400.0090.02014.36
5.4.390.0040.02414.31
5.4.380.0080.02214.34
5.4.370.0070.02614.34
5.4.360.0060.02514.36
5.4.350.0020.02214.26
5.4.340.0070.02914.36
5.4.330.0040.00811.98
5.4.320.0070.02314.34
5.4.310.0050.01514.33
5.4.300.0090.02614.36
5.4.290.0070.02714.37
5.4.280.0050.02814.33
5.4.270.0100.02114.33
5.4.260.0070.02714.37
5.4.250.0030.02514.24
5.4.240.0070.02814.33
5.4.230.0090.01514.34
5.4.220.0060.02814.36
5.4.210.0040.01614.33
5.4.200.0050.02014.29
5.4.190.0060.02814.31
5.4.180.0060.02214.33
5.4.170.0080.02214.30
5.4.160.0070.01214.35
5.4.150.0070.01414.32
5.4.140.0060.02313.41
5.4.130.0060.02313.41
5.4.120.0060.02813.41
5.4.110.0070.02713.47
5.4.100.0020.01813.45
5.4.90.0040.01613.41
5.4.80.0040.01513.38
5.4.70.0050.01313.39
5.4.60.0020.01813.40
5.4.50.0030.01713.46
5.4.40.0040.02613.44
5.4.30.0040.01913.44
5.4.20.0070.01313.38
5.4.10.0080.01213.45
5.4.00.0040.01613.24
5.3.290.0030.02012.88
5.3.280.0030.01612.85
5.3.270.0020.02012.80
5.3.260.0030.02612.85
5.3.250.0070.01812.82
5.3.240.0040.01512.81
5.3.230.0020.03212.83
5.3.220.0040.02712.83
5.3.210.0060.02512.84
5.3.200.0030.02812.84
5.3.190.0030.02812.84
5.3.180.0060.01312.83
5.3.170.0010.03212.85
5.3.160.0070.01712.80
5.3.150.0010.01812.80
5.3.140.0040.01512.80
5.3.130.0070.01712.79
5.3.120.0040.01612.81
5.3.110.0060.02112.84
5.3.100.0050.02312.64
5.3.90.0040.01812.66
5.3.80.0050.02112.58
5.3.70.0040.01512.64
5.3.60.0050.01812.58
5.3.50.0060.01312.56
5.3.40.0030.01712.63
5.3.30.0050.01412.58
5.3.20.0050.01412.52
5.3.10.0020.01512.46
5.3.00.0020.01712.54
5.2.170.0020.02011.18
5.2.160.0000.01811.15
5.2.150.0030.02011.08
5.2.140.0080.02611.17
5.2.130.0030.02711.16
5.2.120.0040.01711.07
5.2.110.0050.01811.14
5.2.100.0080.01811.12
5.2.90.0070.01211.08
5.2.80.0050.02511.06
5.2.70.0020.02911.07
5.2.60.0100.01111.03
5.2.50.0090.02111.11
5.2.40.0020.02011.07
5.2.30.0060.02911.00
5.2.20.0070.02711.01
5.2.10.0030.02610.98
5.2.00.0050.02210.88
5.1.60.0030.01410.62
5.1.50.0030.01910.60
5.1.40.0050.01310.62
5.1.30.0020.01710.79
5.1.20.0050.02710.74
5.1.10.0050.03010.63
5.1.00.0040.01410.55
5.0.50.0040.0139.98
5.0.40.0020.0159.98
5.0.30.0030.0189.98
5.0.20.0040.0099.98
5.0.10.0040.0109.98
5.0.00.0020.0319.98
4.4.90.0020.0229.98
4.4.80.0020.0139.98
4.4.70.0040.0129.98
4.4.60.0010.0109.98
4.4.50.0000.0119.98
4.4.40.0030.0129.98
4.4.30.0030.0089.98
4.4.20.0040.0189.98
4.4.10.0060.0159.98
4.4.00.0010.0209.98
4.3.110.0030.0129.98
4.3.100.0000.0119.98
4.3.90.0030.0169.98
4.3.80.0000.0149.98
4.3.70.0000.0159.98
4.3.60.0000.0089.98
4.3.50.0030.0069.98
4.3.40.0020.0149.98
4.3.30.0020.0139.98
4.3.20.0000.0169.98
4.3.10.0000.0119.98
4.3.00.0020.0099.98

preferences:
37.7 ms | 401 KiB | 5 Q