The growing adoption of electric vehicles (EVs) offers notable benefits, including reduced maintenance costs, improved performance, and environmental sustainability. However, integrating EVs into radial distribution systems (RDSs) poses challenges related to power losses and voltage stability. The model accounts for hourly variations in demand, making it crucial to determine the optimal placement of electric vehicle charging stations (EVCSs) throughout the day. This study proposes a new approach that combines EVCSs, distribution static compensators (DSTATCOMs), and renewable distributed generation (RDG) from solar and wind sources, with a focus on dynamic analysis over 24 h. The spotted hyena optimization algorithm (SHOA) is employed to determine near-global optimum locations and sizes for RDG, DSTATCOMs, and EVCSs, aiming to minimize real power loss while meeting system constraints. The SHOA outperforms traditional methods due to its unique search mechanism, which effectively balances exploration and exploitation, allowing it to find superior solutions in complex environments. Simulations on an IEEE 34-bus RDS under dynamic load conditions validate the approach, demonstrating a reduction in average power loss from 180.43 kW to 72.04 kW, a 72.6% decrease. Compared to traditional methods under constant load conditions, the SHOA achieves a 77.0% reduction in power loss, while the BESA and PSO achieve reductions of 61.1% and 44.7%, respectively. These results underscore the effectiveness of the SHOA in enhancing system performance and significantly reducing real power loss.