For PHP you can use one as CGI and the other as Apache extension, but it's not recommended, features that works on one, might not work on other and if the process is not correctly done, one application might affect the other. Keep it the latest version always, this is always the recommended by PHP and Zend.