Slow PHP CLI performance

PHP CLI stands PHP Command line Interface. the way of using PHP within the system command line.

When using PHP CLI, you’ll be able to check the version, compiled modules, execute a file, etc. The method sometimes takes not much time to execute.

But, from time to time once you execute a command to check PHP version, compiled modules it takes an extended time to return the output. Despite the fact that there are ample resources available, it takes time to load and show the output.

Have a closer look at your php.ini file. This can be in the main because of the extra compiled modules. You’ll have to check the DLL’s OR the .SO files & remove the unused ones. you should attempt multiple combinations to examine that actual module is the culprit.