How to use Mcrypt on the server?

On the server is able to use Mcrypt, however, ther is one condition. The php version for the domain on which the extension is used should be set to 5.6 or 7.0 because only for those version of php this extension works.

By default, PHP is run in the version that is the main (default) on a given server (on the new servers the default version is PHP 7.3).