Is there a keyboard shortcut generating a foreach and also for loop?
Create for loop from an existing list statement:
https://www.jetbrains.com/phpstorm/help/creating-code-constructs-using-surround-templates.html