The compiler explorer is a very handy tool for testing compiler behaviors and the generated assembly code online. It was created by Matt Godbolt (and others).
An instance of the compiler explorer is hosted here https://godbolt.org/.
You can also host it on your own if you wish. Grab its sources from GitHub.
You might also like: