How to check PHP version?
hosting - What is the best php version to use with WordPress? - WordPress Development Stack Exchange
What's the best way to keep up to date with new PHP versions? | The FreeBSD Forums
What is the oldest PHP Version you still have to maintain and why? What do you miss the most from the current versions? Share your grief with us.
Videos
Factsheet
hi, I'm new to PHP.
I want to change display_errors to On for debugging, but see many PHP versions installed.
I thought going to http://localhost/first/index.php?language=English&page=phpinfo would give me the version , but it just renders the regular index page.
Ty.
There isn't (and shouldn't) be an answer with any specific version for this. New versions come out, old versions get discontinued.
At the minimum you should use supported version of PHP. This ensures it still receives bug fixes and (or for less recent version) security updates.
Preferably you should be use the latest stable version of PHP. This ensures you get best possible performance.
PHP site has handy Supported Versions page, which clearly covers currently relevant versions and roadmap for their support.
IMPORTANT EDIT
This has unknowingly came to my attention as it slipped my mind, PHP 5.4 have already reach EOL and the last security support was stopped on the 14th of September 2015.
According to official documentation, PHP 5.5 will finally reach its EOL on the 10 of July 2016 (Active support has already been stopped but this version will still get security updates until its final EOl date of 10 of July 2016).
So to come back to the original question, you should be running on minimum at least PHP 5.5 now, but be sure to get ready to switch to PHP 5.6 within the next 8 months as from date of this answer
ORIGINAL ANSWER
Wordpress are still stuck on the dinosaur PHP versions, so any PHP version newer or equal to 5.3 should do.
It is however very very important to note that all PHP versions prior to version 5.4 have been EOL'ed, the last version being 5.3 a year ago. In short, this means than any PHP version older than 5.4 are no longer supported or updated, which will cause huge security issues if you are still using it.
So, for safety, the bare minimum you should be running safely is PHP 5.4.x, where x should be the latest security release.
In short, to be rather safe than sorry, just like Wordpress, it is always always the best to have the latest available stable release installed.