I got the code screenshot you sent when I typed php --help at the command line. So you do think this is what I need.
that just tells us your server has the executable installed and not just the Apache module. That was the test of whether you could run php from the command prompt.
As NogDog posts, you can execute a php directly from the command prompt just like any other unix executable. Again, you specify the script interpereter; in the case: #!/usr/bin/php. You can do a
$which php
to make sure that is indeed the correct path. Then you use
$chmod +x /path/to/script
as NogDog mentions to make it executable. From there you woudl simply type
$/path/to/script
at the command prompt. Please note, if you are just testing a php script that was built to run in a Web page, you don't want to do this. In this case, just do
$php -f /path/to/script
where /path/to/script is the actual path and file of the PHP script to parse.