The integration of nonrenewable and renewable energy resources is growing rapidly due to energy demand and smart grid technologies. In power grids, the performance of synchronization is reduced by some issues such as frequency instability, voltage distortion, and voltage unbalance. This work presents the fast synchronization of the PV grid‐connected system utilized the hybrid optimized proportional resonant (PR) controller under transient condition. The proposed system is designed and controlled by the optimized PR controller strategy on stationary reference frame control. The AC voltage is switched into the AC grid voltage, and error can occur in the difference between the phase reference and measured value. So the current controller of the PR controller is considering the effects of harmonics. The controller is properly tuned by the hybrid algorithm of killer whale optimization (KWO) and the grasshopper optimization algorithm to reduce the harmonics. The synchronization reduces the phase angle, voltage, and frequency between the generator outcomes. The performance of a PV based optimized PR controller controlled the voltage source inverter to achieve the optimal signal of fast synchronization. The effect of total harmonic distortion transient response is improved by the well‐designed PR control parameters based LC filter. The proposed system is implemented in MATLAB/Simulink platform. The robustness of the system is compared with traditional controllers of the proportional integral derivative and proportional–integral controller.