We need to add an option to the interface of the extension to allow selecting php 7.4 - a radio button would be ok.
Then we need to work on the backend, basically adding to modules/profile/files/trafficserver/x-wikimedia-debug-routing.lua some lines to add PHP_ENGINE=7.4 to the cookies in the request if we find the relevant string.