Upgrading from PHP4 to PHP5

What is the easiest way to upgrade from PHP4 to PHP5?