when you login here https://x10hosting.com/login click the big 'hosting control panel' button,
look for the extra features tab and select 'select php version' tab,
from the drop down menu select version 8.1 then set as current.
remember you need to set as current before it works.