How can I detect the version of PHP that is running from within my script?
You won't believe it... !
PHP.... Version.... phpversion() !
or echo phpinfo(); for more details of version & config.
PHP.... Version.... phpversion() ! <<
lol how did I miss that one?