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