Please give full answer to my question.
Meanwhile also check How to install ioncube loader extension on php 8.1