Php Access Non Static Variable Sum Cannot Be Referenced From A Static Context