@ 2015-11-11T09:54:12Z <?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));
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
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).
Version System time (s) User time (s) Memory (MiB) 5.6.15 0.017 0.043 18.19 5.6.14 0.010 0.063 18.27 5.6.13 0.007 0.077 18.21 5.6.12 0.003 0.047 21.09 5.6.11 0.003 0.043 21.18 5.6.10 0.013 0.050 20.99 5.6.9 0.003 0.040 21.04 5.6.8 0.007 0.080 20.52 5.5.30 0.010 0.073 17.98 5.5.29 0.007 0.067 18.07 5.5.28 0.010 0.037 20.75 5.5.27 0.010 0.083 20.74 5.5.26 0.023 0.070 20.96 5.5.25 0.007 0.037 20.79 5.5.24 0.027 0.070 20.16
preferences:dark mode live preview
146.5 ms | 1394 KiB | 7 Q