All you need is a PAC file to test it. You can write your own following instructions across the web, here is a guide: http://findproxyforurl.com/pac-functions/
Definition of class CProxy - it utilises and demonstrates some of the following:
- PHP 5.4 - uses namespaces to show how they work in this scenario, and traits.
- PAC (proxy-auto-config) functions