How To Wiki

When you run PHP inside your browser, it depends on your web server. This means you may have multiple php versions installed at the same time.

To find out what version is running, use the "phpinfo()" function inside PHP in a web page.

If you have access to php via the command line you can also try:

php -v

From HowTo Wiki, a Wikia wiki.