Go with PHP
I built and maintained open source frameworks in both. I left PHP for Go.<p>1. with <a href="http:&#x2F;&#x2F;sqlc.dev" rel="nofollow">http:&#x2F;&#x2F;sqlc.dev</a> I don&#x27;t have to write ORM or model code anymore. Define all your SQL in an easy to audit file and all your models and interfaces are generated for you.<p>2. with <a href="http:&#x2F;&#x2F;goa.design" rel="nofollow">http:&#x2F;&#x2F;goa.design</a> I can have well-documented OpenAPI API&#x27;s that any team can generate a client for in any language. It also generates the HTTP JSON and gRPC clients&#x2F;servers for me so I can focus on my logic.<p>3. with <a href="https:&#x2F;&#x2F;github.com&#x2F;99designs&#x2F;gqlgen">https:&#x2F;&#x2F;github.com&#x2F;99designs&#x2F;gqlgen</a> I can define GraphQL revolvers that play well with sqlc (any RDBMS) or I can use a key-value store.<p>4. speaking of key-value stores, Go allows them to be embedded! Even SQLite now has the <a href="https:&#x2F;&#x2F;litestream.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;litestream.io&#x2F;</a> project to make it super simple to use a durable, always backed-up SQLite database even in a serverless context.<p>Go is faster, uses less memory, uses types, has built-in formatting, package management, benchmarking and testing. Go supports multiple cores in the same process, and has really-well designed stdlib without all the bugs I used to face trying to use the PHP stdlib.<p>After writing millions of lines of PHP for years, there is nothing I miss anymore. Laravel still wants me to write models, controllers and views by hand and make all the client changes as by-hand code refactors.<p>Go lets me focus on the actual logic instead of waste my time in PHP writing all the implementation details like controller requests handlers, db fetching logic, and input validation.