Heat the oven to 425 F / 220 C with a rack in the middle. Line a 13 x 18-inch / 33 x 46 cm rimmed sheet pan with foil. Prick each eggplant 6 to 8 times with a fork, then rub the eggplants, peppers and unpeeled onions with 1 tbsp of the olive oil.
Set the vegetables on the pan with a little space between them. Roast for 20 minutes, then turn each one over with tongs.
Roast for 20 more minutes. Move the peppers to a bowl once the skins are blistered and blackened in spots and the flesh has collapsed, about 40 minutes in total. Cover the bowl with a plate so the peppers steam.
Return the pan to the oven. Take out the eggplants at about 50 minutes, when the skin wrinkles, the body slumps and a knife slides into the thickest part with no resistance. Roast the onions until 60 minutes, when they feel soft if squeezed with tongs.
Let everything cool for 15 minutes, until you can handle it. Slip the skins off the peppers, remove the stems and seeds, and tear the flesh into strips about 3/4 inch / 2 cm wide. Split the eggplants lengthwise, scrape the flesh from the skin and tear it into strips. Peel the onions, trim the roots and pull them into thick petals.
Arrange the vegetables in rows or loose piles on a platter. Scatter the garlic and salt over the top and drizzle with the remaining 4 tbsp olive oil. Serve warm or at room temperature.