how to handle php versions on a mac code example Example: check php version mac In terminal write: > php -v