When looking at Texas Instruments Part LM358DR there is a lot of questions on the different suffixes. LM358DR , LM358DRE4, LM358DRG3 and LM358DRG4.
The different suffixes on these part numbers are calling out different RoHS and environmental information on these parts. The “E” would be calling out RoHS compliant and “G” is calling out Green (RoHS-compliant and no Br/Sb)
One note on TI parts is that lead based parts such as the LM358DR are backwards compatible so both parts LM358DR and LM358DRE4 will be RoHS compatible, the E4 would be indicating there is a difference in the lead finish.
So while all four parts in this example will be RoHS compliant you will see slight difference in the lead finish.
LM358DR lead finish would be CU NIPDAU | CU SN
LM358DRE4 lead finish would be CU NIPDAU
LM358DRG3 lead finish would be CU SN
LM358DRG4 lead finish would be CU NIPDAU
I would also note however if this was a BGA-based device this would not be true as only the part numbers with a unique part designation would be RoHS compliant. On the BGA-based devices TI uses a “Z” to signify the part would have Pb-Free solder balls. An example would be leaded part number OPA2347YEDR and RoHS compliant part number OPA2347YZDR.
For more information on orderable part numbers please refer to pages 34-38 of the datasheet.