What's current php version?


#1

What’s current php version?


#2

Here’s how to find out what version of PHP you have:

  1. In your project’s View Source view, click the Logs button in the Sidebar. (If you don’t see the Sidebar you may need to toggle it by clicking the small right-arrow icon, just below your project’s title.) This will open the logs view at the bottom of your window.
  2. At the top of the Logs view, click the Console button. This will switch to the Console view.
  3. In the Console view, you will see a number of lines of text. The last line will have a dollar sign $ (this is your prompt) and to the right of that will be a red square (this is your cursor). Type the following:

php -v

Then hit the Enter or Return key. The version number will be output to the console, along with other information:

PHP 7.0.30-0ubuntu0.16.04.1 (cli) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
    with Zend OPcache v7.0.30-0ubuntu0.16.04.1, Copyright (c) 1999-2017, by Zend Technologies

In this example I have version 7.0.30 of PHP. Note that yours may be different, so it’s best to check for yourself. :slight_smile: