Consider this dummy snippet:
<?php
if ( true === $skip || heavy_check() ){
continue;
}The $skip is checked first. It is very quick as it is just a simple variable check. and since this is an ‘or’ statement. As soon as $skip is true it won’t bother with the heavy_check.
Something I always suspected but today I tested this and confirmed it.