No it doesn't. The SCT is not a exhaustive test and may exhibit some anomalous behavior from time to time. I'm not well enough versed to investigate any further into this one.
While you are working on loops, I would recommend that you disable the auto-refresh before starting each lesson. That way you can take your time typing in the code.
<?php else ?>
at the top of your code (anywhere, actually) will raise a parse error and shutdown execution. Another option is to decrease the window size until the preview window disappears, which will do effectively the same thing, shut down the auto-refresh. Remember to remove that bit of code when ready to submit.