# make sure you have tools installed
xcode-select --install
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
# unlink your current version
brew unlink php56
#install 7.0
brew install php70
: '
$ php --version
PHP 7.0.0 (cli) (built: Dec 2 2015 13:05:57) ( NTS )
Copyright (c) 1997-2015 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2015 Zend Technologies
'
Upgrade to 5.6 - https://codepad.co/snippet/HucAKPQ2
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.