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


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.

  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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