I would like to know the simplest and fastest PHP code line to check if mcrypt extension is available/installed.
There is a function that encrypts a string and first it
If you are using a development environment like XXAMP, or WAMP, there should be a default "phpinfo" page. For example, in XXAMP it would be:
http://localhost/dashboard/phpinfo.php
You can also achieve this same screen by viewing a php file that has: phpinfo(); somewhere in the code.
In this screen, simply search for the string "mcrypt support". If installed, you will see a box that says "enabled".