3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $eligible_categories = array("mens"); $list_categories = array("mens:apparel:shirts", "mens:footwear"); foreach ($eligible_categories as $category) { if(in_array($category, $list_categories)){ echo "eligible"; } }
Output for 4.3.0 - 7.3.0rc4