Panel data unit root tests, which can be applied to data that do not have many time series observations, are based on very restrictive error and deterministic component specification assumptions. In this paper, we develop a new, doubly modified estimator, based on which we propose a panel unit root test that allows for multiple structural breaks, linear and nonlinear trends, heteroscedasticity, serial correlation, and error cross‐section heterogeneity, when the number of time series observations is finite. The test has the additional perk that it is invariant to the initial condition.