PHP is a programming language in which most web applications are written, including WordPress, Joomla and e-commerce systems. The code runs on the server and the finished page is sent to the visitor.
On hosting, you can choose a different PHP version for each website. More in the article Choosing a PHP version.