PHP Version/Code Tester

How can I test the compatibility of my PHP code against PHP version?