Oh that's an even larger pickle...
v6 and v7 are entirely different codebases, so you'd have to export the db and all v6 files somewhere that has an older copy of PHP then import that to a v7.2 install (importer and latest v7 is in the CP) then upgrade that to v7.5.8 which is the only version compatible with the latest versions of PHP.