All of which

Running which with the -a flag will list all of the matching executables found in $PATH, not just the first.

Without the -a flag:

$ which bash
/opt/homebrew/bin/bash

With the -a flag:

$ which -a bash
/opt/homebrew/bin/bash
/bin/bash