Check the current PHP version installed
First check your current version on mac with the below command into your terminal.
php -v
Output:
PHP 7.3.11 (cli) (built: Jun 5 2020 23:50:40) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018