Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On, we can read : All users of PHP are encouraged to upgrade to PHP 5.4.6, or at least 5.3.16. Does it mean that it is better to use 5.4.6 than 5.3.16, even for production ? I have heard that 5.4.6 is not stable.

I would be interested in 5.4.6 in order to use, but will not if PHP 5.4.6 is not stable.

Thank you.

share|improve this question
"I have heard"? From whom? Test your application in both. If it works in both, I'd use the more recent version. – ceejayoz Aug 21 '12 at 19:31
up vote 2 down vote accepted

For developing a new project from scratch, I would go with 5.4. It will have a much longer shelf life than 5.3 or prior versions.

For deploying an existing project, including any open source PHP code you downloaded from the Internet, I would use PHP 5.3. The reason for this is that 5.4 has a few places where backward compatibility was broken, and some existing PHP scripts will need updating to be compatible with 5.4. In a few cases, the package would have to be completely refactored to work with 5.4.

See the PHP 5.4 migration guide for all the gory details.

share|improve this answer
hepful. Thank you. – Christophe Aug 21 '12 at 21:35

5.4 series has some important features not available in 5.3. I have not seen anything in 5.4 that is not stable. Keep in mind that sometimes, people quote "unstable" loosely based on their experience without proper testing. A good number of issues I have seen in PHP are not related to PHP itself.

I always compile PHP from source and include only the extensions I need. It keeps it clean and less bloat.

share|improve this answer
Thank you for your answer. – Christophe Aug 21 '12 at 21:33

PHP 5.4.6 and PHP 5.3.16 are stable releases with the difference that PHP 5.3.16 has been longer in the field and 5.4 is fairly recent.

Either one you choose, ensure your application is well tested..

Choose 5.4 since it will have longer life, is stable, has the features you need and has had 6 bug fix releases already.

share|improve this answer
Thank you for your answer. – Christophe Aug 21 '12 at 19:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.