php -v
dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
Referenced from: /usr/local/bin/php
Reason: image not found
[1] 93359 abort php -v
brew switch openssl 1.1
Error: openssl does not have a version "1.1" in the Cellar.
openssl's installed versions: 1.0.2k, 1.0.2l, 1.0.2o_1, 1.0.2o_2, 1.0.2s
brew switch openssl 1.0.2s
Cleaning /usr/local/Cellar/openssl/1.0.2o_1
Cleaning /usr/local/Cellar/openssl/1.0.2s
Cleaning /usr/local/Cellar/openssl/1.0.2k
Cleaning /usr/local/Cellar/openssl/1.0.2l
Cleaning /usr/local/Cellar/openssl/1.0.2o_2
Opt link created for /usr/local/Cellar/openssl/1.0.2s
php -v
PHP 7.3.6 (cli) (built: May 31 2019 23:38:25) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.6, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.6, Copyright (c) 1999-2018, by Zend Technologies