Menu

How to Get current version of PHP?

Nov 11, 2019 Eduardo Zambrano

  1. You can use a text editor like Sublime or Notepa++. Don't use word editor.
  2. Enter the following code in the editor.
     <?php
            echo 'The current version of PHP is : ' . phpversion();
     ?>
  3. Save it as file_name.php (For eg., version.php).
  4. Upload the file to the web server and run it in a web server. (hostname/file_name.php).