3 sticks unsalted butter, softened, plus more for the pan
3 cups all-purpose flour
1 tablespoon baking powder
1/2 teaspoon salt
2 cups granulated sugar
4 large eggs
1 teaspoon pure vanilla extract
1 cup milk
3 ounces bittersweet chocolate, melted
3/4 cup chunky peanut butter
1 cup dark brown sugar
4 bananas, halved lengthwise
Preheat the oven to 350° and lightly butter the sides of a 9-by-13-inch glass baking dish. In a medium bowl, whisk the flour with the baking powder and salt.
In a standing electric mixer fitted with the paddle, beat 2 sticks of the butter with the granulated sugar at medium speed until very fluffy, 5 minutes. Beat in the eggs one at a time, then add the vanilla. In 3 alternating batches, beat in the flour mixture and the milk. Transfer one-fourth of the batter to a medium bowl and stir in the melted chocolate. Beat the peanut butter into the remaining batter.
In a small bowl, blend the remaining stick of butter with the brown sugar and spread it in the baking dish. Arrange the bananas, cut side down, in the dish. Spoon dollops of the peanut butter batter into the dish and fill in the gaps with the chocolate batter. Gently swirl the batters together with a table knife.
Set a baking sheet on the bottom of the oven. Bake the cake in the center of the oven for 1 hour and 5 minutes, until a toothpick inserted into the center comes out clean. Let the cake cool on a rack for 10 minutes, then invert it onto a platter. Let the cake cool slightly, then cut into squares and serve.
The unmolded cake can be refrigerated for up to 3 days.