3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = "Nonprofit & Activism"; $match = preg_match("/^(Autos & Vehicles|Comedy|Education|Entertainment|Film & Animation|Gaming|Howto & Style|Music|News & Politics|Nonprofit & Activism|People & Blogs|Pets & Animals|Science & Technology|Sport|Travel & Events)$/i", $data); var_dump($match); echo ($match ? "TRUE" : "FALSE");
based on HjE4d
Output for 4.3.0 - 7.2.0
int(1) TRUE