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','Gnu','Hen'); $list = array_diff($list,array($brand)); ppr($list); $list = array_diff($list,array($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 [6] => Gnu [7] => Hen ) </pre><pre>Array ( [0] => Ape [1] => Bat [2] => Cat [3] => Dog [4] => Elk [6] => Gnu [7] => Hen ) </pre><pre>Array ( [0] => Fox [1] => Ape [2] => Bat [3] => Cat [4] => Dog [5] => Elk [6] => Gnu [7] => 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:
33.76 ms | 402 KiB | 8 Q