PHP is an interpreted language. Many widespread softwares and services use or have used PHP or a fork of it, like Wordpress and Facebook.
For the most common applications it's used in conjunction with a web server like Apache or Nginx to process .php files.
For developers PHP offers a simplified web server (-S switch) to load and debug local scripts.
