3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 'pageData' => array( 'title' => 'Links • Intranet', ), 'linkCategories' => array( 'Unsorted' => array( array( 'linkTitle' => 'a link title', 0 => 'a link title', 'linkDescription' => 'This is an example of a link you can store. This is the external website', 1 => 'This is an example of a link you can store. This is the external website', 'linkUrl' => 'https://www.asbcdef.co.uk/', 2 => 'https://www.abcdef.co.uk/', ), array( 'linkTitle' => 'People', 0 => 'People', 'linkDescription' => 'This is another link', 1 => 'This is another link', 'linkUrl' => 'https://www.efgjk.co.uk/people/', 2 => 'https://www.efgjk.co.uk/people/', ), ), 'Cat 2' => array( array( 'linkTitle' => 'People', 0 => 'People', 'linkDescription' => 'This is another link', 1 => 'This is another link', 'linkUrl' => 'https://www.efgjk.co.uk/people/', 2 => 'https://www.efgjk.co.uk/people/', ), ) ), ); foreach ($data['linkCategories'] as $category => $links) { echo $category . PHP_EOL; foreach ($links as $link) { echo $link['linkTitle'] . PHP_EOL; } echo PHP_EOL . PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
Unsorted a link title People Cat 2 People

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:
34.05 ms | 401 KiB | 8 Q