3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ppr($array){ echo '<pre>'; print_r($array); echo '</pre>'; } $brand = 'Fox'; $list = array('Ape','Bat','Cat','Dog','Elk','Fox','G','Hen'); unset($list[$brand]); ppr($list); array_unshift($list,$brand); ppr($list);
Output for git.master, git.master_jit, rfc.property-hooks
<pre>Array ( [0] => Ape [1] => Bat [2] => Cat [3] => Dog [4] => Elk [5] => Fox [6] => G [7] => Hen ) </pre><pre>Array ( [0] => Fox [1] => Ape [2] => Bat [3] => Cat [4] => Dog [5] => Elk [6] => Fox [7] => G [8] => Hen ) </pre>

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