Portal v1.8.1 is fully compatible with v4.7.2.1 and PHP 8.1.10.
I upgraded my site without any problem, after disabling the Back To Top 1.5 plugin which is not compatible.
I had to uninstall Portal which was installed via the Marketplace and reinstall it manually by importing the custom blocks.