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