Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies Then based on some of the comments above you should run: $ php -version You can substitute 54 with the latest number if you want.
for testing purposes or whatsoever.įor brew users, you might not need php55 if you already have 54 - but regardless you should probably run these commands $ brew install php54 php54-xdebug php54-mcrypt You can also add new aliases for different php versions, aliases like "php52", "php53", "php54", etc. That's it, no change in the /usr/bin folder needed, and u can export your bashrc file / settings to any other linux / bsd like system if needed without even touching your OS /usr/bin files. If you need the php-alias to work right out of your current shell-session, then you have to use the following command (that's optional, so only if u r continuing to work in your current shell): source ~/.bashrc
bashrc file as follows (works with other commands as well): Another way without changing the original php file / link is if you edit your.