Ask HN: Should I support PHP 5.2

1 points by superice ↗ HN
I am programming on a PHP application since mid last year, and the code is becoming more complicated by the day. I would like to use namespaces, but with PHP 5.2 still being widely used, is it reasonable to switch to PHP >= 5.3 ?

According to the usage stats found here: http://w3techs.com/technologies/details/pl-php/5/all I would exclude about 33% of my customers. Then again, those stats are about servers, not about my customers specifically. (Most hosting companies offer 5.3 or higher these days right?)

Any opinions?

3 comments

[ 3.3 ms ] story [ 20.0 ms ] thread
(comment deleted)
Seeing that PHP 5.6 is just about to be released and PHP 5.4 has been out for years, I would target php 5.4+

PHP 5.2 has reached end of life over 3 years ago. http://php.net/eol.php

Yeah, I guess you're right, I didn't realize PHP 5.2 was that old already. Thanks for replying!