3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = array(array('title' => 'title', 'image' => 'image', 'link' => 'link')); $template = ' <div class="card"> <h1>{{CARD_TITLE}}</h1> {{CARD_IMAGE}} {{CARD_LINK}} </div> '; foreach ($items as $item) { echo strtr($template, array('{{CARD_TITLE}}' => $item['title'], '{{CARD_IMAGE}}' => $item['image'], '{{CARD_LINK}}' => $item['link'])); }
Output for git.master, git.master_jit, rfc.property-hooks
<div class="card"> <h1>title</h1> image link </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:
29.62 ms | 405 KiB | 5 Q