Update UserAgentParser.php
Update UserAgentParser.php

- Remove anonymous function usage as it breaks in some version of PHP and if eAccelarator is install.
- Optimized performance, only strtolower the results once instead of on each search.
toolstack/PhpUserAgent