I have been surprised to learning that a number of my hosted sites only support 5.1.6, when my dev box is running 5.3.x. This is a huge disappointment, because I've been working with namespaces (5.3+) and other features that seem to me to be excellent, if not strictly necessary.
Anyway, when writing code that is designed to be portable (eg: plugins for popular platforms like WordPress), what version of PHP should I be targeting, based on the minimum version that's supported on the majority of web hosts out there.
Does anyone know? How can one find out?
Check http://w3techs.com/technologies/details/pl-php/all/all
out.
It contains a lot of PHP stats. As of 12 Dec 2012,
96.4%
of all the websites which use PHP.42.3%
of all the websites which use PHP version 552.8%
of all the websites which use PHP version 5My godaddy hosting account is on 5.2.17. If you want code to be portable then I would go with a general baseline of 5.0 features, which is pretty big feature set.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With