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> <a href="'. $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.60.0120.00916.63
8.3.50.0090.00921.93
8.3.40.0040.01118.70
8.3.30.0140.00318.70
8.3.20.0040.00420.16
8.3.10.0040.00423.65
8.3.00.0060.00319.38
8.2.180.0070.01416.63
8.2.170.0090.00622.96
8.2.160.0130.00020.47
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00419.36
8.2.120.0080.00026.35
8.2.110.0150.00421.10
8.2.100.0000.01218.04
8.2.90.0050.00318.88
8.2.80.0090.00017.97
8.2.70.0000.00817.63
8.2.60.0050.00317.93
8.2.50.0080.00018.07
8.2.40.0040.00419.43
8.2.30.0000.00720.66
8.2.20.0110.00017.75
8.2.10.0040.00418.06
8.2.00.0040.00418.01
8.1.280.0120.00325.92
8.1.270.0060.00922.14
8.1.260.0040.00428.09
8.1.250.0070.00728.09
8.1.240.0060.00319.58
8.1.230.0090.00317.77
8.1.220.0030.00617.79
8.1.210.0040.00418.77
8.1.200.0030.00617.11
8.1.190.0040.00417.23
8.1.180.0050.00218.10
8.1.170.0000.00718.78
8.1.160.0050.00222.03
8.1.150.0000.00818.89
8.1.140.0040.00419.59
8.1.130.0040.00417.48
8.1.120.0000.00717.37
8.1.110.0020.00517.52
8.1.100.0030.00517.40
8.1.90.0000.00717.46
8.1.80.0080.00017.36
8.1.70.0000.00817.32
8.1.60.0050.00317.64
8.1.50.0080.00017.42
8.1.40.0000.00817.55
8.1.30.0030.00617.67
8.1.20.0000.00817.67
8.1.10.0000.00817.45
8.1.00.0090.00017.42
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0000.00718.46
8.0.270.0080.00017.23
8.0.260.0080.00016.90
8.0.250.0070.00017.00
8.0.240.0000.00617.00
8.0.230.0030.00317.00
8.0.220.0000.00717.00
8.0.210.0000.00916.88
8.0.200.0000.00717.04
8.0.190.0040.00417.04
8.0.180.0100.00017.01
8.0.170.0030.00517.04
8.0.160.0040.00416.93
8.0.150.0000.00716.88
8.0.140.0000.00716.92
8.0.130.0000.00713.39
8.0.120.0030.00516.95
8.0.110.0000.00716.85
8.0.100.0030.00517.02
8.0.90.0040.00417.01
8.0.80.0060.01016.94
8.0.70.0040.00417.00
8.0.60.0080.00016.88
8.0.50.0050.00216.87
8.0.30.0150.00317.08
8.0.20.0070.01217.43
8.0.10.0040.00416.98
8.0.00.0110.00616.68
7.4.330.0020.00216.89
7.4.320.0060.00016.60
7.4.300.0060.00016.55
7.4.290.0040.00416.43
7.4.280.0000.01016.53
7.4.270.0070.00016.57
7.4.260.0040.00416.59
7.4.250.0040.00416.48
7.4.240.0030.00316.49
7.4.230.0030.00316.72
7.4.220.0090.01616.38
7.4.210.0040.01116.68
7.4.200.0050.00316.63
7.4.160.0130.00416.54
7.4.150.0090.00917.40
7.4.140.0110.01017.86
7.4.130.0110.00916.52
7.4.120.0070.01116.52
7.4.110.0110.01116.39
7.4.100.0070.01116.63
7.4.90.0140.00316.51
7.4.80.0040.01519.39
7.4.70.0090.00916.48
7.4.60.0090.00616.50
7.4.50.0070.01116.41
7.4.40.0090.01316.71
7.4.30.0120.00616.45
7.4.00.0070.01115.20
7.3.330.0050.00313.44
7.3.320.0050.00013.39
7.3.310.0030.00316.32
7.3.300.0030.00316.29
7.3.290.0030.01316.37
7.3.280.0120.00516.38
7.3.270.0130.00617.40
7.3.260.0030.01416.47
7.3.250.0160.00416.53
7.3.240.0120.00616.37
7.3.230.0090.00916.39
7.3.210.0100.01316.35
7.3.200.0090.00916.34
7.3.190.0140.00716.34
7.3.180.0090.00616.46
7.3.170.0100.00716.38
7.3.160.0100.00716.43
7.2.330.0100.00716.42
7.2.320.0130.01016.71
7.2.310.0040.01316.72
7.2.300.0170.00016.70
7.2.290.0110.01416.81
7.2.60.0090.00616.96
7.2.00.0100.00719.52
7.1.200.0030.00915.96
7.1.100.0070.00718.11
7.1.70.0040.00417.06
7.1.60.0090.00319.48
7.1.50.0000.01917.05
7.1.00.0030.07722.32
7.0.200.0300.00314.73
7.0.60.0100.06719.92
7.0.50.0130.07317.89
7.0.40.0030.07020.13
7.0.30.0270.05720.10
7.0.20.0370.07020.10
7.0.10.0100.06720.25
7.0.00.0200.07320.16
5.6.280.0000.03320.90
5.6.210.0070.08020.55
5.6.200.0070.07318.29
5.6.190.0230.07020.46
5.6.180.0430.06720.33
5.6.170.0370.06720.39
5.6.160.0000.06020.54
5.6.150.0070.08318.15
5.6.140.0030.05718.25
5.6.130.0170.07318.27
5.6.120.0030.04020.97
5.6.110.0030.04721.10
5.6.100.0130.07321.05
5.6.90.0030.04021.01
5.6.80.0070.08320.36
5.5.350.0370.06720.35
5.5.340.0100.07717.97
5.5.330.0070.06020.29
5.5.320.0030.05020.27
5.5.310.0230.07320.27
5.5.300.0100.07718.01
5.5.290.0070.05317.94
5.5.280.0030.04020.89
5.5.270.0000.04720.77
5.5.260.0000.07720.80
5.5.250.0030.04020.70
5.5.240.0300.07020.20

preferences:
51.19 ms | 401 KiB | 5 Q