The name would be... hm... what sounds original yet catchy... PHP! :-)
And it ends up in the /usr/local/bin/
WHen you compile PHP you have to decide if you want the apache module version OR the CGI version.
One compilation makes one version.
However, you can run both compilations after eachother and get both versions that way.