Chinese roulette. Sometimes it's original chips, sometimes it's recycled chips, sometimes it's other recycled chips with modified markings, sometimes is some Chinese substitute with fake markings, sometimes it's a completely unrelated Chinese chip with fake markings. The only rule is that there is no rules. You either accept the rule, or you don't play the game at all, or you lose
Two chips on your breadboard look differently from the other two, could you post closeups with visible top markings? Good light helps a lot.
Before binning the chips, see
this thread for a few fun ideas of what could be done with them. Noopy's articles are in German, but pictures are self-explanatory.
If they don't want to work as AD584, I would check if they work using ordinary DIP8 reference pinout. That is, ground at pin 4, input at pin 2, output at pin 6. Then check if they are NE555, opamps, etc, but this is quickly getting crazy...
edit
Crazy and likely to do permanent damage. BTW, are they getting hot when connected as AD584?
edit
I'm stupid
The first thing to do with an unknown chip, always, is to test all pairs of pins with a DMM in diode mode. Look for pins which have diodes from itself to most other pins - these are likely power supplies.
Since these are supposed to be AD584, and you have a good sample of AD584, test for diodes between pins and compare between the good and the bad samples. If you put red probe on common, you should see diodes to at least a few other pins. You should be able to detect several resistors between pins - see the internal schematic in the datasheet.