Debian 11 Bullseye
Sponsored Link

PHP 7.4 : Install
2021/09/22
 
Install PHP.
[1] Install PHP 7.4.
root@dlp:~#
apt -y install php7.4 php7.4-mbstring php-pear
root@dlp:~#
php -v

PHP 7.4.21 (cli) (built: Jul  2 2021 03:59:48) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.21, Copyright (c), by Zend Technologies

# verify installation to create a test script

root@dlp:~#
echo "<?php echo 'PHP 7.4 Test Page'.\"\n\"; ?>" > php_test.php

root@dlp:~#
php php_test.php

PHP 7.4 Test Page
Matched Content