Tecadmin published a quick tutorial about checking the PHP version.
How to Check PHP Version (Apache/Nginx/CLI)
PHP (Hypertext Preprocessor) is an popular programming language generally used for the web development. It was originally developed by the Danish-Canadian programmer Rasmus Lerdorf in year 1994. It can be used either via the command line or used with the popular web servers like Apache or Nginx.