Although the decision-makers at the Prussian State Railways were not great fans of four-cylinder compounds, they could not ignore the good experiences in France with the de Glehn locomotives. In this design, the second driving axle was driven by the outside high-pressure cylinders and the first by the inside low-pressure cylinders. Eighteen passenger locomotives with a 4-6-0 wheel arrangement were ordered in order to gain experience from regular operations and to consider the procurement of larger numbers of de Glehn locomotives.
Since the Elsässische Maschinenbau-Gesellschaft in Grafenstaden had already manufactured the Baden IV e and the Elsass-Lorraine P 5, the locomotives were also ordered there and designated as P 7. The locomotives were used on the lines from Hagen via Cologne to Trier and between Frankfurt and Bebra. Apparently, the boiler did not always provide enough steam for the cylinders, what in view of the more expensive maintenance meant that no further P 7 were purchased. Five were handed over to the Belgian State Railways and the rest were decommissioned in the First World War.