PHP incredibly slow since upgrading macOS to 10.14 Mojave?
I faced a similar issue on Mojave update, I was able to fix it by updating /etc/hosts file with 

::1             localhost YouMacName.local
127.0.0.1       localhost YouMacName.local


You can get YourMacName.local by running in terminal:

$ hostname


I hope it helps you