PHP4 is almost completely backwards compatible with PHP3 except in a few obscure matters. The PHP website clearly documents this. I don't have the URL handy, take a look, there's a section in the PHP4 docs about migrating. MIght be part of the FAQ actually.