Well, this is quite an old thread, but hopefully this might actually help someone.
I had the problem were I wanted to keep an old store working with an old PHP5.2 version, and I want to install a Wordpress blog on the /blog directory and run it with the latest PHP version. Server running...