Use strpos() instead of preg_match()
Before: 2.255 seconds
After: 2.220 seconds