Script: https://phabricator.wikimedia.org/source/mediawiki/browse/master/maintenance/dev/installphp.sh
The maintenance/dev/installphp.sh script tries to install PHP 5.6 but the URL and version it tries to use is outdated and doesn't work. It should be updated to install PHP 7.4 instead.