Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Can someone explain to me what exactly the --enable-inline-optimization option does when compiling PHP and why people would use it? Thank you!

share|improve this question
up vote 0 down vote accepted

You might check this Wikipedia article on inline expansion first to understand exactly what is meant by inline optimization. But essentially the compiler uses more memory (and generates a larger binary) to speed up the resulting program.

Here's a post to the php-dev list describing in a bit more detail the affect this option has.

share|improve this answer
I see. So this does not necessarily help in to increase the performance of php scripts? – Aco Jul 23 '11 at 0:59
It could improve the performance of the PHP engine (Zend Engine), which in turn would improve the performance of the PHP scripts that it executes. (I don't know to what degree the performance could be affected, though – you'd have to test that.) – fission Jul 23 '11 at 6:25
Ok thanks for the info. If you have anything else to add, please do so. Thanks again. – Aco Jul 23 '11 at 6:49

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.