Never use deg2rad() in loops, use $rad = ($deg * M_PI / 180) instead which is faster!
(PHP 4, PHP 5, PHP 7, PHP 8)
deg2rad — Converte il numero dato in gradi nell'equivalente espresso in radianti
Never use deg2rad() in loops, use $rad = ($deg * M_PI / 180) instead which is faster!