A free PHP playground: the PHP 8 interpreter, compiled to WebAssembly, runs your script inside your browser tab.
PHP 8.5, the official interpreter compiled to WebAssembly.
No. It runs in your browser with no network access, so there is no MySQL server; each run starts from a fresh interpreter.
No. Everything is lost when you refresh or close the tab.