mac check all php version installed code example Example: check php version mac In terminal write: > php -v