TIL about https://phpsandbox.io - similar to a tool I started but never shipped, and it includes support for Composer dependencies.
Wrote a quick blog post about it with a short demo of how it can be embedded into blog posts: https://whateverthing.com/blog/2020/11/22/php-sandbox/
Open source. Open community. We are dedicated to building and enriching the PHP community.