3v4l.org

run code in 300+ PHP versions simultaneously
<?php $items = ""; $array = array(array("tags"=>"sky - earth - sea"),array("tags"=>"iron - silver - gold"),array("tags"=>"apple - fruit - food")); foreach($array as $row) { $arr = explode(' - ', $row['tags']); $items .= "<div class='tagdown'>".implode("</div>\n<div class='tagdown'>",$arr)."</div>\n"; } echo $items;
Output for git.master, git.master_jit, rfc.property-hooks
<div class='tagdown'>sky</div> <div class='tagdown'>earth</div> <div class='tagdown'>sea</div> <div class='tagdown'>iron</div> <div class='tagdown'>silver</div> <div class='tagdown'>gold</div> <div class='tagdown'>apple</div> <div class='tagdown'>fruit</div> <div class='tagdown'>food</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:
52.59 ms | 402 KiB | 8 Q