Menu

Get Current Version Of PHP

  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 webserver and run it on a web server. (hostname/file_name.php)