As keith said, the circuit is intended switch a high voltage, high current with a logic level signal. But, I see one problem here, that there is no level shifting, which would damage the P-channel MOSFET as max voltage between gate and source is 20V. Here the difference becomes 40V, so add a 30V zener in the collector path for level shifting.