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); echo $index; 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_values(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.0070.01116.75
8.3.50.0090.00922.05
8.3.40.0030.01218.70
8.3.30.0040.01118.84
8.3.20.0080.00020.31
8.3.10.0000.00823.39
8.3.00.0080.00019.38
8.2.180.0120.00618.31
8.2.170.0100.00722.96
8.2.160.0030.01020.44
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0060.00319.48
8.2.120.0080.00026.35
8.2.110.0060.00320.52
8.2.100.0080.00419.06
8.2.90.0050.00319.09
8.2.80.0090.00017.97
8.2.70.0060.00317.50
8.2.60.0000.00818.04
8.2.50.0040.00418.07
8.2.40.0040.00419.41
8.2.30.0040.00420.74
8.2.20.0060.00317.64
8.2.10.0080.00018.01
8.2.00.0030.00518.18
8.1.280.0080.00825.92
8.1.270.0060.00623.83
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0070.00323.75
8.1.230.0060.00620.92
8.1.220.0000.00817.74
8.1.210.0000.01018.77
8.1.200.0030.00617.38
8.1.190.0000.00917.36
8.1.180.0030.00518.10
8.1.170.0040.00418.66
8.1.160.0040.00421.96
8.1.150.0040.00418.90
8.1.140.0060.00319.59
8.1.130.0000.00717.62
8.1.120.0080.00017.50
8.1.110.0080.00017.35
8.1.100.0000.00817.47
8.1.90.0070.00017.46
8.1.80.0050.00317.46
8.1.70.0020.00517.45
8.1.60.0000.00817.59
8.1.50.0050.00317.57
8.1.40.0040.00417.38
8.1.30.0030.00617.73
8.1.20.0080.00017.60
8.1.10.0070.00017.63
8.1.00.0040.00417.41
8.0.300.0030.00618.77
8.0.290.0070.00016.63
8.0.280.0030.00318.46
8.0.270.0030.00617.19
8.0.260.0040.00417.21
8.0.250.0030.00317.01
8.0.240.0000.00716.93
8.0.230.0000.00716.94
8.0.220.0000.00716.91
8.0.210.0100.00016.86
8.0.200.0000.00716.94
8.0.190.0040.00416.94
8.0.180.0040.00716.98
8.0.170.0050.00316.96
8.0.160.0040.00417.01
8.0.150.0020.00516.93
8.0.140.0040.00416.96
8.0.130.0040.00413.36
8.0.120.0040.00416.95
8.0.110.0030.00516.96
8.0.100.0040.00416.83
8.0.90.0070.00016.84
8.0.80.0070.00716.94
8.0.70.0000.00717.02
8.0.60.0070.00016.87
8.0.50.0050.00216.77
8.0.30.0140.00717.16
8.0.20.0230.01717.40
8.0.10.0030.00517.15
8.0.00.0090.00817.08
7.4.330.0050.00016.89
7.4.320.0030.00316.66
7.4.300.0000.00616.59
7.4.290.0000.00716.38
7.4.280.0040.00416.51
7.4.270.0000.00716.60
7.4.260.0060.00016.49
7.4.250.0000.00816.46
7.4.240.0020.00516.59
7.4.230.0030.00316.68
7.4.220.0100.01016.51
7.4.210.0030.01016.46
7.4.200.0040.00416.37
7.4.160.0070.00716.73
7.4.150.0060.01317.40
7.4.140.0150.00717.86
7.4.130.0070.01216.48
7.4.120.0110.00616.58
7.4.110.0030.01616.76
7.4.100.0000.01816.61
7.4.90.0140.00416.41
7.4.80.0040.02019.39
7.4.70.0110.00616.69
7.4.60.0120.00316.72
7.4.50.0110.00416.38
7.4.40.0070.01816.38
7.4.30.0030.01816.50
7.4.10.0030.01015.02
7.4.00.0090.00915.00
7.3.330.0040.00313.25
7.3.320.0000.00613.38
7.3.310.0070.00016.48
7.3.300.0000.00716.43
7.3.290.0070.00816.31
7.3.280.0090.00916.33
7.3.270.0110.01117.40
7.3.260.0150.00716.64
7.3.250.0110.00816.39
7.3.240.0120.00716.36
7.3.230.0140.00316.39
7.3.210.0100.00716.63
7.3.200.0140.00316.39
7.3.190.0170.00016.54
7.3.180.0100.00616.43
7.3.170.0170.00316.56
7.3.160.0120.00416.55
7.3.130.0110.00714.73
7.3.120.0040.01214.52
7.3.110.0070.01014.75
7.3.100.0060.00915.04
7.3.90.0040.01114.86
7.3.80.0040.00814.64
7.3.70.0100.00314.81
7.3.60.0000.00914.86
7.3.50.0040.00714.84
7.3.40.0110.00014.80
7.3.30.0060.00314.61
7.3.20.0070.01016.32
7.3.10.0030.00916.64
7.3.00.0070.00616.59
7.2.330.0060.01216.58
7.2.320.0130.00716.76
7.2.310.0030.01416.64
7.2.300.0030.01316.54
7.2.290.0060.01516.61
7.2.260.0100.00714.95
7.2.250.0090.00915.19
7.2.240.0030.01315.15
7.2.230.0030.01315.29
7.2.220.0100.00715.23
7.2.210.0040.00815.06
7.2.200.0030.01315.06
7.2.190.0070.00714.98
7.2.180.0100.00715.12
7.2.170.0030.00915.14
7.2.160.0040.01115.03
7.2.150.0090.00317.02
7.2.140.0060.00616.92
7.2.130.0050.01016.90
7.2.120.0070.00916.83
7.2.110.0090.00616.88
7.2.100.0070.00817.03
7.2.90.0090.00816.80
7.2.80.0060.00816.72
7.2.70.0070.00716.96
7.2.60.0080.00516.92
7.2.50.0080.01016.83
7.2.40.0070.01017.00
7.2.30.0070.00716.86
7.2.20.0100.00616.86
7.2.10.0040.00916.91
7.2.00.0090.00617.58
7.1.330.0030.01015.91
7.1.320.0030.01515.75
7.1.310.0070.01015.91
7.1.300.0000.01015.68
7.1.290.0060.00615.51
7.1.280.0090.00015.73
7.1.270.0000.01015.73
7.1.260.0120.00015.87
7.1.250.0050.00815.90
7.1.240.0070.00715.73
7.1.230.0110.00315.55
7.1.220.0080.00815.55
7.1.210.0110.00515.74
7.1.200.0050.00715.76
7.1.190.0050.00715.95
7.1.180.0110.00515.79
7.1.170.0060.00915.75
7.1.160.0060.00715.79
7.1.150.0120.00515.70
7.1.140.0070.00715.94
7.1.130.0070.00815.74
7.1.120.0100.00415.68
7.1.110.0050.00815.63
7.1.100.0060.00716.53
7.1.90.0110.00215.77
7.1.80.0090.00515.69
7.1.70.0060.00616.31
7.1.60.0060.01016.96
7.1.50.0070.00816.15
7.1.40.0070.00915.82
7.1.30.0080.00615.77
7.1.20.0070.00715.76
7.1.10.0100.00515.70
7.1.00.0050.03018.01
7.0.330.0060.00615.38
7.0.320.0070.00515.50
7.0.310.0110.00515.34
7.0.300.0100.00515.47
7.0.290.0120.00215.38
7.0.280.0090.00415.39
7.0.270.0050.00915.21
7.0.260.0080.00815.27
7.0.250.0080.00715.47
7.0.240.0030.01015.48
7.0.230.0090.00715.36
7.0.220.0080.01015.31
7.0.210.0050.00715.25
7.0.200.0190.00415.13
7.0.190.0090.00415.16
7.0.180.0050.01015.46
7.0.170.0090.00615.43
7.0.160.0030.01215.37
7.0.150.0030.01015.43
7.0.140.0060.00715.34
7.0.130.0120.00115.43
7.0.120.0050.00815.29
7.0.110.0070.00715.29
7.0.100.0050.00915.42
7.0.90.0060.00615.37
7.0.80.0060.00615.47
7.0.70.0090.00415.29
7.0.60.0080.03116.81
7.0.50.0040.03216.29
7.0.40.0070.02715.68
7.0.30.0110.01915.53
7.0.20.0110.03115.52
7.0.10.0060.02415.58
7.0.00.0060.03315.54
5.6.400.0080.00414.04
5.6.390.0080.00414.15
5.6.380.0020.01214.28
5.6.370.0090.00214.36
5.6.360.0040.00714.30
5.6.350.0080.00614.36
5.6.340.0080.00714.53
5.6.330.0050.00714.28
5.6.320.0050.00914.60
5.6.310.0050.00614.24
5.6.300.0040.00714.41
5.6.290.0050.00814.43
5.6.280.0070.01116.56
5.6.270.0080.00514.38
5.6.260.0040.00914.18
5.6.250.0060.00814.35
5.6.240.0050.00414.42
5.6.230.0030.01014.27
5.6.220.0040.00614.56
5.6.210.0090.02716.53
5.6.200.0060.02215.72
5.6.190.0080.02716.45
5.6.180.0130.02116.30
5.6.170.0150.02316.49
5.6.160.0110.02916.34
5.6.150.0050.03115.64
5.6.140.0070.02015.49
5.6.130.0040.02715.63
5.6.120.0070.01716.74
5.6.110.0050.01816.66
5.6.100.0060.03216.54
5.6.90.0060.02416.42
5.6.80.0060.03016.23
5.6.70.0060.00814.15
5.6.60.0090.00514.34
5.6.50.0010.00914.29
5.6.40.0000.01114.13
5.6.30.0050.00614.10
5.6.20.0020.00714.24
5.6.10.0030.00814.18
5.6.00.0110.00314.31
5.5.380.0040.00512.93
5.5.370.0040.00912.50
5.5.360.0030.00512.44
5.5.350.0150.02715.25
5.5.340.0050.02614.45
5.5.330.0070.02115.27
5.5.320.0050.03315.28
5.5.310.0130.02815.21
5.5.300.0070.02514.49
5.5.290.0060.03114.65
5.5.280.0030.01715.43
5.5.270.0070.02815.53
5.5.260.0060.03215.30
5.5.250.0040.01715.24
5.5.240.0110.02915.25
5.5.230.0040.00812.66
5.5.220.0040.00912.71
5.5.210.0070.00512.40
5.5.200.0050.00912.64
5.5.190.0040.00612.87
5.5.180.0040.00412.63
5.5.170.0050.00512.54
5.5.160.0070.00312.44
5.5.150.0030.00812.84
5.5.140.0030.00812.77
5.5.130.0020.00812.62
5.5.120.0110.00212.46
5.5.110.0050.00512.65
5.5.100.0060.00512.81
5.5.90.0030.01112.55
5.5.80.0000.00912.68
5.5.70.0030.00912.62
5.5.60.0060.00512.47
5.5.50.0050.00512.30
5.5.40.0070.00712.72
5.5.30.0020.01112.82
5.5.20.0040.00912.68
5.5.10.0020.01112.79
5.5.00.0030.00512.70

preferences:
52.61 ms | 401 KiB | 5 Q