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)
5.6.150.0170.04318.19
5.6.140.0100.06318.27
5.6.130.0070.07718.21
5.6.120.0030.04721.09
5.6.110.0030.04321.18
5.6.100.0130.05020.99
5.6.90.0030.04021.04
5.6.80.0070.08020.52
5.5.300.0100.07317.98
5.5.290.0070.06718.07
5.5.280.0100.03720.75
5.5.270.0100.08320.74
5.5.260.0230.07020.96
5.5.250.0070.03720.79
5.5.240.0270.07020.16

preferences:
146.5 ms | 1394 KiB | 7 Q