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 "wololoooooo"; print_r($section); 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.0040.01118.55
8.3.50.0140.00422.05
8.3.40.0090.00618.65
8.3.30.0140.00418.70
8.3.20.0040.00420.16
8.3.10.0040.00423.53
8.3.00.0060.00319.51
8.2.180.0100.01016.75
8.2.170.0000.01522.96
8.2.160.0080.00520.38
8.2.150.0110.00024.18
8.2.140.0070.00024.66
8.2.130.0040.00419.36
8.2.120.0060.00326.35
8.2.110.0060.00319.29
8.2.100.0090.00317.84
8.2.90.0040.00419.22
8.2.80.0000.00817.97
8.2.70.0040.00817.13
8.2.60.0060.00317.93
8.2.50.0090.00018.07
8.2.40.0050.00219.20
8.2.30.0000.00720.52
8.2.20.0090.00017.74
8.2.10.0070.00018.20
8.2.00.0040.00418.20
8.1.280.0090.00625.92
8.1.270.0040.00723.99
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0030.00622.05
8.1.230.0040.00818.83
8.1.220.0040.00417.79
8.1.210.0030.00518.77
8.1.200.0080.00017.36
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0080.00018.77
8.1.160.0000.00722.09
8.1.150.0000.00718.95
8.1.140.0040.00419.55
8.1.130.0000.00717.72
8.1.120.0050.00217.49
8.1.110.0040.00417.51
8.1.100.0040.00417.38
8.1.90.0030.00417.48
8.1.80.0100.00017.35
8.1.70.0030.00317.48
8.1.60.0040.00417.61
8.1.50.0080.00017.56
8.1.40.0040.00417.52
8.1.30.0000.01017.60
8.1.20.0000.00817.62
8.1.10.0060.00317.57
8.1.00.0000.01017.55
8.0.300.0080.00020.22
8.0.290.0040.00416.75
8.0.280.0000.00818.37
8.0.270.0080.00017.27
8.0.260.0070.00017.18
8.0.250.0000.00717.00
8.0.240.0000.00616.95
8.0.230.0070.00017.04
8.0.220.0080.00016.96
8.0.210.0030.00616.91
8.0.200.0000.00716.96
8.0.190.0050.00217.02
8.0.180.0030.00616.88
8.0.170.0000.00816.89
8.0.160.0080.00016.88
8.0.150.0040.00416.88
8.0.140.0030.00316.96
8.0.130.0030.00313.34
8.0.120.0030.00616.95
8.0.110.0040.00416.95
8.0.100.0000.00717.07
8.0.90.0000.00717.00
8.0.80.0070.01016.94
8.0.70.0000.00816.82
8.0.60.0000.00716.86
8.0.50.0050.00316.86
8.0.30.0150.00717.16
8.0.20.0100.01017.40
8.0.10.0040.00317.13
8.0.00.0090.00816.70
7.4.330.0060.00016.73
7.4.320.0000.00716.66
7.4.300.0060.00016.51
7.4.290.0000.00716.53
7.4.280.0040.00416.59
7.4.270.0000.00716.51
7.4.260.0000.00816.52
7.4.250.0000.00816.48
7.4.240.0020.00516.53
7.4.230.0070.00016.70
7.4.220.0120.00616.37
7.4.210.0040.01116.62
7.4.200.0070.00016.55
7.4.160.0030.01316.46
7.4.150.0070.01317.40
7.4.140.0130.00917.86
7.4.130.0150.00316.57
7.4.120.0110.01016.58
7.4.110.0100.01016.45
7.4.100.0090.00916.52
7.4.90.0070.01116.44
7.4.80.0120.01219.39
7.4.70.0090.00916.68
7.4.60.0110.00616.48
7.4.50.0030.01316.45
7.4.40.0090.00916.64
7.4.30.0100.00716.58
7.4.00.0070.00715.18
7.3.330.0040.00413.43
7.3.320.0000.00613.28
7.3.310.0070.00016.32
7.3.300.0000.00716.39
7.3.290.0110.00916.33
7.3.280.0050.01216.38
7.3.270.0120.00617.40
7.3.260.0070.01116.47
7.3.250.0110.00616.46
7.3.240.0100.01016.44
7.3.230.0100.00616.50
7.3.210.0110.00716.42
7.3.200.0120.00616.34
7.3.190.0060.01016.52
7.3.180.0060.01516.47
7.3.170.0070.01016.34
7.3.160.0030.01316.47
7.3.120.0060.01014.57
7.3.110.0030.01315.04
7.3.100.0060.01214.73
7.3.90.0060.00914.90
7.3.80.0080.00514.62
7.3.70.0040.01214.91
7.3.60.0080.00314.66
7.3.50.0000.01714.93
7.3.40.0030.00914.64
7.3.30.0070.00715.05
7.3.20.0000.01416.71
7.3.10.0100.00616.75
7.3.00.0040.00716.54
7.2.330.0070.01116.60
7.2.320.0210.00016.49
7.2.310.0080.00916.75
7.2.300.0030.01516.66
7.2.290.0150.00616.57
7.2.240.0060.00915.10
7.2.230.0070.01015.09
7.2.220.0030.01315.26
7.2.210.0100.00715.21
7.2.200.0000.01815.11
7.2.190.0000.01614.90
7.2.180.0040.01415.04
7.2.170.0070.01115.20
7.2.160.0120.00314.98
7.2.150.0130.00317.15
7.2.140.0080.00416.95
7.2.130.0070.00717.10
7.2.120.0060.00616.91
7.2.110.0060.00816.83
7.2.100.0040.01416.94
7.2.90.0000.01617.10
7.2.80.0080.00817.02
7.2.70.0080.00817.18
7.2.60.0070.00916.99
7.2.50.0030.01017.07
7.2.40.0030.01416.97
7.2.30.0090.00617.17
7.2.20.0060.00917.07
7.2.10.0060.01016.75
7.2.00.0030.00818.12
7.1.330.0060.00615.61
7.1.320.0060.00915.80
7.1.310.0080.00815.84
7.1.300.0100.00315.87
7.1.290.0070.00715.70
7.1.280.0070.01015.69
7.1.270.0120.00315.63
7.1.260.0070.00615.88
7.1.250.0030.01015.99
7.1.200.0060.00615.95
7.1.100.0060.00318.22
7.1.70.0040.00417.33
7.1.60.0090.01519.48
7.1.50.0000.01116.70
7.1.00.0100.07022.41
7.0.200.0290.00714.70
7.0.60.0100.04019.93
7.0.50.0030.05017.89
7.0.40.0070.08720.22
7.0.30.0200.05020.08
7.0.20.0330.06720.21
7.0.10.0100.05720.07
7.0.00.0030.06320.23
5.6.280.0030.06020.88
5.6.210.0030.07020.72
5.6.200.0100.03718.14
5.6.190.0100.08020.50
5.6.180.0230.08020.60
5.6.170.0330.07020.44
5.6.160.0200.06720.54
5.6.150.0000.06718.18
5.6.140.0070.04018.24
5.6.130.0100.06318.16
5.6.120.0000.04321.05
5.6.110.0070.03720.90
5.6.100.0030.05020.91
5.6.90.0030.04321.09
5.6.80.0130.07320.49
5.5.350.0300.06020.44
5.5.340.0130.07017.95
5.5.330.0200.07320.31
5.5.320.0170.07320.36
5.5.310.0100.04720.42
5.5.300.0100.06717.99
5.5.290.0070.06718.08
5.5.280.0030.04020.86
5.5.270.0070.08020.95
5.5.260.0130.07720.96
5.5.250.0100.03320.58
5.5.240.0200.07720.27

preferences:
38.69 ms | 401 KiB | 5 Q