[Solved] Micro-optimizations: if($var){ … } vs if($var): … endif [closed]

[ad_1]

I’m sure the difference is negligible, if there is any. If the difference is important to you, you should probably use a faster (likely compiled) language.

You would do better optimizing more intensive things, like databases first (and writing clean code, as @Tim stated).

[ad_2]

solved Micro-optimizations: if($var){ … } vs if($var): … endif [closed]