People like micro-optimizations. They are easy to understand, easy to apply... and useless. But some time ago, while reviewing pull requests for Twig, I read an interesting discussion about the performance of the ternary operator in PHP (thanks to @nikic for the investigation). Do you know which following snippet is the fastest (of course, they do exactly the same)? // snippet 1 $tmp = isset($cont