how to check php version in mac terminal code example Example: check php version mac In terminal write: > php -v