# [MATL], <s>15</s> 12 bytes

    4:"3tYL@X!tP

[Try it online!](https://tio.run/##y00syfn/38RKybgk0schQrEk4P9/AA) Outputs all matrices without separation. Note that the output is unambiguous.

Alternatively, [this version](https://tio.run/##y00syfn/38RKybgk0schQtEguTKg8v9/AA) uses a line as separator, for 15 bytes.

[MATL]: https://github.com/lmendo/MATL

### How it works 

```
4:      % Range [1 2 3 4]
"       % For each k in that range
  3tYL  %   Magic square of size 3 (gives one of the 8 possible squares)
  @     %   Push k
  X!    %   Rotate matrix 90 degrees k times
  t     %   Duplicate
  P     %   Flip vertically
        % End (implicit)
        % Display stack, bottom to top (implicit)
```