download: xampp-win32-1.6.8-installer.exe
from:
https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/1.6.8/This will get you php 4.4 with MySQL version 5.0 and correct settings to do an easy install of ubbt 6.4 1
Then you can use xampp's built in "php switch" tool to jump between php 4.4 and php 5.2 as you need.
note: you probably will need at least MySQL 5.5 for ubbt 7.7.0 or newer. but you can run the ubbt 7.7.4 upgrade script to get you there from a prior ubbt 7 version. followup with gizmo and ruben on that sequence.