It's illegal in Germany as well ("Beamtenbeleidigung" literally insult of a civil servant). The fines are pretty mild but it's a funny law (imo). The line isn't exactly clear. Some things qualify as insults, others don't.
Iirc "Clown" qualifies but "Bulle" (somewhat similar to the US use of pig=cop) doesn't because it is considered common use now.
The rulings usually seem arbitrary.
[The same laws apply for insulting non officers btw.]
Edit: Upper limit is technically one year in prison or a corresponding monetary fine (value depends on your income as is standard in Germany)