Github codespaces are pretty darn good for development. Including free 120 hours it is amazing. Inside it is docker-compose run somewhere in the cloud.

it integrates very well with VS Code, sure it is ))

I've created repo to use for my PHP projects, you are welcome to try it

https://github.com/ameoba32/codespace-php-mysql