3v4l.org

run code in 300+ PHP versions simultaneously
<?php $outsideService = array('guest.booking.com','vrbo.com'); $DepartingOS = array('ivchan630@gmail.com', 'mplotn.346854@guest.booking.com', '0'); if (array_reduce($outsideService, function ($c, $OS) use ($DepartingOS) { return $c || array_reduce($DepartingOS, function ($c, $DOS) use ($OS) { return $c || (strpos($DOS, $OS) !== false); }, false); }, false)) { echo "True"; } $found = false; foreach ($outsideService as $OS) { foreach ($DepartingOS as $DOS) { if (strpos($DOS, $OS) !== false) { $found = true; break 2; } } } if ($found) { echo "True"; }
Output for git.master, git.master_jit, rfc.property-hooks
TrueTrue

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