If you are working on PHP and want to immediately know the version of PHP version. Then you should know the command as you are in terminal right now. We all know we have to enter the commands in terminal to work.
There is simple command from which we can know the current PHP version.
From this command you will get the output with current PHP version.
There is simple command from which we can know the current PHP version.
Code:
php –v