I haven't tried this myself, but... possibly by installing a second instance of Apache (or your web server of choice), you can configure a second PHP installation to run v5.
You wouldn't be able to run both web servers at the same time, unless you switched one or both of their default ports.