Which programming language is this?
declare -A ports=([web]=80 [db]=5432)
for svc in "${!ports[@]}"; do
printf '%s -> %s\n' "$svc" "${ports[$svc]}"
done
Answer: Bash
declare -A associative arrays and ${!ports[@]} key expansion are Bash features missing from POSIX sh.