3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dataset=[[3,"Yellow","Banana"], [2,"Brown","Ananas"], [1,"Green","brown"]]; $dataset = array_filter($dataset, function ($v){ return filterArray('anana', $v); }); function filterArray($needle,$haystack){ foreach($haystack as $v){ if (stripos($v, $needle) !== false) return true; }; return false; } echo '<pre>'; print_r($dataset); echo '</pre>';
Output for git.master_jit, git.master, rfc.property-hooks
<pre>Array ( [0] => Array ( [0] => 3 [1] => Yellow [2] => Banana ) [1] => Array ( [0] => 2 [1] => Brown [2] => Ananas ) ) </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:
56.4 ms | 401 KiB | 8 Q