3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( '0' => 'Message: Thanks for all', '1' => 'Response: Goodbye', '2' => '', '3' => 'inactive', '4' => 'active call', '5' => 'active channels', '6' => 'Hello', '7' => 'Hi', '8' => 'yes', '9' => 'no' ); $res = []; array_walk($array, function($v, $k) use (&$res){ if(strpos($v, ':') === false && strpos($v, 'active') === false && $v != ''){ $res[] = $v; } }); print_r($res);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Hello [1] => Hi [2] => yes [3] => no )

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:
186.72 ms | 405 KiB | 5 Q