3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sections = array( array( 'name' => 'home', 'uri' => '/', 'title' => 'home'), array( 'name' => 'tech', 'uri' => '/tech', 'title' => 'ux/ui' ), array( 'name' => 'monetization', 'uri' => '/monetization', 'title' => 'monetization' ), array( 'name' => 'contact', 'uri' => '/contact', 'title' => 'contact', 'callToAction' => true, 'desktopTitle' => 'contact us' ), array( 'name' => 'blog', 'uri' => 'https://blog.marfeel.com/blog', 'title' => 'blog', 'external' => true), ); function callToActions($section) { return $section["callToAction"]; } function defaultSections($section) { return !$section["callToAction"]; } function buildSections ($sections) { $index = count($sections); while($index) { $section = $sections[--$index]; echo '<li class="' . (getCurrentSection() == $section["name"] ? "mrf-current" : "") . (($section["callToAction"])? " mrf-contactAction": "") .'"> <a href="' . get_bloginfo('wpurl') . $section["uri"] . '">' . ($section["desktopTitle"]? ucfirst($section["desktopTitle"]): ucfirst($section["title"])) . '</a> </li>'; } } buildSections(array_filter($sections, callToActions)); //print_r(array_filter($sections, defaultSections));

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.40.0150.00018.75
8.3.30.0100.00318.75
8.3.20.0040.00420.30
8.3.10.0050.00323.68
8.3.00.0080.00019.38
8.2.170.0170.00022.96
8.2.160.0090.00620.58
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0090.00019.36
8.2.120.0040.00426.35
8.2.110.0070.00320.53
8.2.100.0120.00017.80
8.2.90.0000.00819.30
8.2.80.0040.00417.97
8.2.70.0030.00517.38
8.2.60.0030.00617.80
8.2.50.0040.00418.07
8.2.40.0050.00319.20
8.2.30.0080.00020.53
8.2.20.0090.00017.65
8.2.10.0000.00818.07
8.2.00.0000.00718.09
8.1.270.0080.00823.99
8.1.260.0060.00328.09
8.1.250.0050.00328.09
8.1.240.0060.00322.20
8.1.230.0080.00419.44
8.1.220.0030.00517.77
8.1.210.0030.00518.77
8.1.200.0070.00317.22
8.1.190.0040.00417.11
8.1.180.0040.00418.10
8.1.170.0040.00418.76
8.1.160.0000.00821.96
8.1.150.0000.00718.84
8.1.140.0030.00619.60
8.1.130.0000.00917.66
8.1.120.0040.00417.46
8.1.110.0000.00717.48
8.1.100.0050.00317.38
8.1.90.0000.00817.42
8.1.80.0000.00717.52
8.1.70.0030.00317.43
8.1.60.0000.00917.68
8.1.50.0060.00317.52
8.1.40.0030.00617.55
8.1.30.0060.00617.60
8.1.20.0000.00817.69
8.1.10.0000.00817.52
8.1.00.0080.00017.55
8.0.300.0030.00618.77
8.0.290.0050.00316.75
8.0.280.0030.00518.49
8.0.270.0050.00417.40
8.0.260.0030.00317.23
8.0.250.0000.00717.06
8.0.240.0030.00317.05
8.0.230.0030.00516.95
8.0.220.0000.00716.96
8.0.210.0100.00016.88
8.0.200.0070.00017.03
8.0.190.0070.00017.11
8.0.180.0040.00417.03
8.0.170.0040.00417.06
8.0.160.0080.00017.04
8.0.150.0000.00716.76
8.0.140.0040.00416.89
8.0.130.0070.00013.35
8.0.120.0040.00416.84
8.0.110.0000.00717.00
8.0.100.0040.00417.02
8.0.90.0030.00516.92
8.0.80.0080.00816.96
8.0.70.0020.00516.94
8.0.60.0020.00516.99
8.0.50.0070.00016.85
8.0.30.0060.01417.24
8.0.20.0070.01217.40
8.0.10.0030.00316.94
8.0.00.0110.00716.69
7.4.330.0030.00316.71
7.4.320.0000.00616.44
7.4.300.0030.00316.53
7.4.290.0020.00516.52
7.4.280.0040.00416.65
7.4.270.0000.00816.63
7.4.260.0000.00816.52
7.4.250.0040.00416.49
7.4.240.0060.00116.61
7.4.230.0070.00016.70
7.4.220.0100.01316.48
7.4.210.0070.00716.50
7.4.200.0030.00316.53
7.4.160.0110.00716.72
7.4.150.0150.00317.40
7.4.140.0050.01917.86
7.4.130.0050.01316.48
7.4.120.0060.01316.60
7.4.110.0100.00916.46
7.4.100.0160.00816.62
7.4.90.0090.00916.34
7.4.80.0060.01219.39
7.4.70.0090.00916.51
7.4.60.0100.00716.69
7.4.50.0070.00716.39
7.4.40.0220.00016.56
7.4.30.0150.00316.60
7.4.00.0110.00315.20
7.3.330.0050.00213.29
7.3.320.0050.00013.24
7.3.310.0000.00716.43
7.3.300.0000.00716.29
7.3.290.0080.00716.35
7.3.280.0110.00716.34
7.3.270.0130.00317.40
7.3.260.0090.00916.62
7.3.250.0100.00916.34
7.3.240.0140.00616.33
7.3.230.0170.00016.58
7.3.210.0040.01816.37
7.3.200.0000.01616.42
7.3.190.0100.01016.55
7.3.180.0120.00416.48
7.3.170.0090.00916.30
7.3.160.0090.00916.48
7.3.10.0090.01516.55
7.3.00.0140.00716.64
7.2.330.0120.00616.76
7.2.320.0140.00316.84
7.2.310.0000.01616.54
7.2.300.0030.01416.46
7.2.290.0110.00916.76
7.2.130.0170.01116.46
7.2.120.0190.00616.68
7.2.110.0070.00716.61
7.2.100.0090.00916.46
7.2.90.0120.00416.47
7.2.80.0080.01416.61
7.2.70.0100.01016.86
7.2.60.0070.00916.68
7.2.50.0100.01116.55
7.2.40.0100.01016.66
7.2.30.0150.00616.56
7.2.20.0080.00816.62
7.2.10.0150.00316.84
7.2.00.0060.01118.05
7.1.250.0100.00715.75
7.1.200.0030.01015.58
7.1.100.0000.01518.25
7.1.70.0030.00517.06
7.1.60.0100.01419.48
7.1.50.0030.00917.02
7.1.00.0070.07322.34
7.0.200.0250.00314.59
7.0.60.0030.08719.93
7.0.50.0230.05717.89
7.0.40.0100.08320.06
7.0.30.0230.04020.25
7.0.20.0300.06720.34
7.0.10.0100.08720.17
7.0.00.0030.05020.03
5.6.280.0030.03021.00
5.6.210.0030.08320.48
5.6.200.0100.08318.29
5.6.190.0030.06720.41
5.6.180.0430.06020.48
5.6.170.0230.07720.45
5.6.160.0100.08720.46
5.6.150.0030.06318.16
5.6.140.0170.06318.29
5.6.130.0030.08318.19
5.6.120.0070.03720.98
5.6.110.0070.03721.15
5.6.100.0100.07720.96
5.6.90.0030.04021.11
5.6.80.0070.07020.40
5.5.350.0270.04020.42
5.5.340.0130.06718.08
5.5.330.0100.08020.27
5.5.320.0070.05020.36
5.5.310.0130.04320.36
5.5.300.0030.06317.99
5.5.290.0000.04717.94
5.5.280.0030.04020.78
5.5.270.0070.03720.88
5.5.260.0030.06020.90
5.5.250.0130.06720.59
5.5.240.0230.07020.27

preferences:
51.44 ms | 400 KiB | 5 Q