This work exposes novel aspects of the thermodynamic second law on magnetohydrodynamic (MHD) third-phase flow in porous media towards a moving surface. The heat equation incorporates the influence of uniform heating and radiation. Formulated non-linear PDEs of momentum and energy equations are reduced to ODEs by considering similarity variables, and the numerical technique RKF-45 approach in conjunction with the shooting procedure is used to solve the produced ODEs. The performance of relevant physical quantities on the momentum and thermal profiles, skin friction, heat transfer, and entropy generation are visually represented and thoroughly explored. The Grashof-Biot numbers, porous media, radiation, and flow characteristics all tend to rise as a result of increasing liquid heat and velocity. However, this is not true in the case of uniform heating and magnetic fields. Entropy is produced in increasing amounts by flow parameters, magnetic fields, porous media, heat sources, and Biot-Brinkman numbers, while it is reduced by Grashof-Prandtl numbers, temperature differences, and radiation parameters. The rate of heat transfer is inversely related to the increase in radiation and the heat source. Skin friction exhibits reciprocal behavior with a rise in permeability and the convection parameter, and it is also influenced by Newtonian fluid. Furthermore, it has been determined that the present study excellently agrees with earlier published studies.