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/', ), ) ), ); ?> <div class="row"> <?php foreach ($data['linkCategories'] as $category => $links) { ?> <div class="col-6"> <div class="h6"><?php echo $category; ?></div> <?php foreach ($links as $link) { ?> <div class="row"> <div class="col"> <p> <a target="_blank" class="text-danger" href="<?php echo $link['linkUrl'] ?>"><?php echo $link['linkTitle']; ?></a> </p> <p><?php echo $link['linkDescription']; ?></p> </div> </div> <?php } ?> </div> <?php } ?> </div>
Output for git.master, git.master_jit, rfc.property-hooks
<div class="row"> <div class="col-6"> <div class="h6">Unsorted</div> <div class="row"> <div class="col"> <p> <a target="_blank" class="text-danger" href="https://www.asbcdef.co.uk/">a link title</a> </p> <p>This is an example of a link you can store. This is the external website</p> </div> </div> <div class="row"> <div class="col"> <p> <a target="_blank" class="text-danger" href="https://www.efgjk.co.uk/people/">People</a> </p> <p>This is another link</p> </div> </div> </div> <div class="col-6"> <div class="h6">Cat 2</div> <div class="row"> <div class="col"> <p> <a target="_blank" class="text-danger" href="https://www.efgjk.co.uk/people/">People</a> </p> <p>This is another link</p> </div> </div> </div> </div>

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:
35.02 ms | 403 KiB | 8 Q