Consider the following code:
foreach ($products as $product) {
if (some_long_condition()) {
continue;
}
do_stuff();
Which would be faster, having a condition with a continue
, or negating the condition itself? Is there a difference at all in terms of performance, or is it just syntactic sugar?