Hartman--Wintner type theorem for PDE with p-Laplacian