With the new 12.0.1 ionCube loaded, rebuild PHP 8.1.x. (Note the new ionCube does not support PHP 8.0.x)
Then reboot.
When you run php -v, you should see:
# php -v
PHP 8.1.7 (cli) (built: Jun 19 2022 04:26:11) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.1.7, Copyright (c) Zend Technologies
with the ionCube PHP Loader v12.0.1, Copyright (c) 2002-2022, by ionCube Ltd.