It’s really common to want to review your php setup. The easiest way is the php function phpinfo(); the following will run from the command line or from a web browser:
Or to just see the modules
To run from the command line type
Since outputting this information can be a security risk avoid running from your webserver unless the directory is secured against random visitors.