Edible or poisonous?
A clear picture of the whole plant that where I could determine size would have helped. A description of flower is always helpful. It looks like the flower is white outside and yellow inside.
None the less, I think it is a nightshade, probably black nightshade. We usually classify as poisonous.
Many universities have a tool to help with the ID, like out Missouri Weed ID. If you use the tool, start by setting the "Weed type" as broadleaf. then other criteria will show to narrow the possibilities. Each one has a help "[?]".