A variable defined in a foreach statement and never used is not found. ```php $foo = [1, 2, 3]; // The next line should report an unused variable foreach ( $foo as $bar ) { echo 'hi'; } ``` **tldr:** The global scope is not scanned because there's no token to indicate when it ends.