3v4l.org

run code in 300+ PHP versions simultaneously
<?php function checkname($arr, $name) { foreach (array_slice(func_get_args(), 1) as $name) { if (strpos($arr, $name) !== false) { return $name; } } return ''; } $autoName=json_decode('["image1","image3","image2","stores1","stores2","stores2","stores3","stores4","design1","design2"]',true); echo call_user_func_array("checkname",array_merge(array("image123456"),$autoName));
Output for git.master, git.master_jit, rfc.property-hooks
image1

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