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