Nibbana is an unconditioned dhamma, and is included in “sabbe dhamma anatta”.
When it's intended to be excluded, you will instead see "sabbe sankhara" instead of "sabbe dhamma". Therefore, "all compounds are devoid of self" would be "sabbe sankhara anatta". Therefore, they are different in meaning and intent. Is the person you quoted suggesting they are synonymous?
(...although interestingly it seems that in the different editions of the Pali Dhammapada there are discrepencies about which ones are used when).
"Having understood name-and-form, which is a product of prolificity,
And which is the root of all malady within and without,
He is released from bondage to the root of all maladies,
That Such-like-one is truly known as 'the one who has understood'." (Snp 3.6)
"Whether I were to preach in brief, Sāriputta, or whether I were to preach in detail, Sāriputta, or whether I were to preach both in brief or in detail, Sāriputta, rare are those who understand." (A I 333, Sāriputtasutta)