PHP Code Optimization Tips #2

Check out my other PHP optimization tips by clicking on the Optimization category.

This is my second post on PHP code optimization. First of all, and this is the most important thing, when we talk about PHP code performance we’re not necessarily think of how fast is our code. Performance is relative, it’s a compromise between speed and scalability.

So when I will post my code optimization tips and results I will present them from different perspectives. The first one is obviously speed, and the second is memory usage. Logically the most optimal code is what achieves the best performance in all categories.

A very good explanation can be found at phpLens

Leave your reply
  • (required)
  • (will not be published)
  • Show
    :mrgreen: :neutral: :twisted: :arrow: :shock: :smile: :???: :cool: :evil: :grin: :idea: :oops: :razz: :roll: :wink: :cry: :eek: :lol: :mad: :sad: 8-) 8-O :-( :-) :-? :-D :-P :-o :-x :-| ;-) 8) 8O :( :) :? :D :P :o :x :| ;) :!: :?:
  • Allowed tags: <a href="" title="">, <b>, <i>, <strike>, <em>, <strong>, <code>