3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mylist = array("thing1" => "Balloon", "thing2" => "Cat", "thing3" => "Egg", "thing4" => "Dog", "thing5" => "Apple"); asort($mylist); foreach($mylist as $id => $value) { $id = htmlentities($id, ENT_QUOTES); $value = htmlentities($value); echo "<div id='{$id}'>{$value}</div>"; }
Output for git.master, git.master_jit, rfc.property-hooks
<div id='thing5'>Apple</div><div id='thing1'>Balloon</div><div id='thing2'>Cat</div><div id='thing4'>Dog</div><div id='thing3'>Egg</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.93 ms | 401 KiB | 8 Q