20
It depends on your development environment. The best way to test for a specific version of PHP and MySQL is to use those specific versions.
A good PHP editor or IDE will have the ability validate and debug code for specific versions. With Zend Studio you can pick project specific PHP versions for both the PHP interpreter and executable. I am sure other IDEs offer this functionality as well.