3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('/tag/', '/foo/', '/category/', '/erik/'); foreach($a as $b) { if (strpos($b,'/tag/') !== false || strpos($b,'/category') !== false){ echo $b; } }
based on XcgoQ
Output for 4.3.0 - 7.1.0
/tag//category/