PHP 4 Deprecated Functions Scanner?

Anyone know of a way to scan PHP written for a MySQL 4.x webapp, check it for deprecated functions and assure readiness to talk to the same database, once converted to MySQL 5.x?

Thanks!

Ansel