3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(1 => 'test', 'to' => 'to', 5 => 'fem', 6 => 6); foreach ($arr as $key => $item) { echo("<p>Key is: " . $key . " with value=" . $item . "</p>"); }
Output for git.master, git.master_jit, rfc.property-hooks
<p>Key is: 1 with value=test</p><p>Key is: to with value=to</p><p>Key is: 5 with value=fem</p><p>Key is: 6 with value=6</p>

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