Compile php as a cgi binary on your machine (you like perl, I'm asuming you *nix) .. to do this just do a ./configure, make, make install (no --with-apache or --with-apxs in the configure). After you do this you should have a file /usr/local/bin/php which will be the parser you require. Now, at the top of the php file, create the hash bang effect (sorry couldn't help it)
#!/usr/local/bin/php -q
Now, the -q tell's php just to be quiet, don't output your normal http headers (we're not going to a browser, don't need 'em). Put the normal parser begin and ending statments (<? ?>) around your code and you're ready to rock and roll.
Hope that helps!
Chris King
BTW: My middle name is Jens, and it is my cousins name as well. I have yet to meet another. greetings 😉