For anyone else who finds this topic: I installed PHP via Homebrew (Apple Silicon) but Alfred was still showing "/usr/bin/php [not installed]". I kept messing around with the Workflow and at some point Alfred automatically discovered where PHP was installed. In the future, I would just quit and relaunch Alfred after installing a missing interpreter.