3v4l.org

run code in 300+ PHP versions simultaneously
<?php $source = [ array_combine(range(1,10), range(1,10)), array_combine(range(11,20), range(11,20)), array_combine(range(21,30), range(21,30)) ]; $return = []; foreach($source as $data) { $return = array_merge($return, $data); } $filter = function ($value, $key) { return ($value > 25); }; $return = array_filter($return, $filter, ARRAY_FILTER_USE_BOTH); var_dump($return);
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [25]=> int(26) [26]=> int(27) [27]=> int(28) [28]=> int(29) [29]=> int(30) }

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