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 cmp($a, $b) { if ($a["callToAction"]) { return 1; } return -1; } usort($sections, "cmp");
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "callToAction" in /in/7nEuW on line 13 Warning: Undefined array key "callToAction" in /in/7nEuW on line 13 Warning: Undefined array key "callToAction" in /in/7nEuW on line 13 Warning: Undefined array key "callToAction" in /in/7nEuW on line 13

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
57.98 ms | 402 KiB | 8 Q