This paper presents a novel modified Levy flight optimization for a photovoltaic PV solar energy system. Conventionally, the Perturb and Observe (P&O) algorithm has been widely deployed in most applications due to its simplicity and ease of implementation. However, P&O suffers from steady-state oscillation and stability, besides its failure in tracking the optimum power under partial shading conditions and fast irradiance changes. Therefore, a modified Levy flight optimization is proposed by incorporating a global search of beta parameters, which can significantly improve the tracking capability in local and global searches compared to the conventional methods. The proposed modified Levy flight optimization is verified with simulations and experiments under uniform, non-uniform, and dynamic conditions. All results prove the advantages of the proposed modified Levy flight optimization in extracting the optimal power with a fast response and high efficiency from the PV arrays.