What this does is tell the php command-line application to run a phpinfo() and output it in text format to the shell. Then filtering it through grep to find the actual line, which will display like so:

You can, of course, always put a new php file in your web server root directory and add in the following:

And then browse to it in your browser.

phpinfo();