Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Should I support PHP 5.2
1 point by superice on Feb 11, 2014 | hide | past | favorite | 2 comments
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?



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!




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: