setup-php exposes output values you can reference in later steps of your workflow. To access outputs, assign an id to the setup-php step and reference it using the steps.<id>.outputs.<name> expression.
The PHP version that was set up, in semver format (e.g.
8.5.4).This is useful when you specify a non-exact version like latest, 8.x, or highest and need to know the exact version that was installed — for example, to use it as a cache key or to log it in your workflow summary.