We study local boundedness for subsolutions of nonlinear nonuniformly elliptic equations whose prototype is given by ∇⋅(λ∣∇u∣p−2∇u)=0, where the variable coefficient 0≤λ and its inverse λ−1 are allowed to be unbounded. Assuming certain integrability conditions on λ and λ−1 depending on p and the dimension, we show local boundedness. Moreover, we provide counterexamples to regularity showing that the integrability conditions are optimal for every p>1.