We present a multiaperture analyzer setup for performing x-ray phase contrast imaging in planar and three-dimensional modalities. The method is based on strongly structuring the x-ray beam with an amplitude modulator, before it reaches the sample, and on a multiaperture analyzing element before detection. A multislice representation of the sample is used to establish a quantitative relation between projection images and the corresponding three-dimensional distributions, leading to successful tomographic reconstruction. Sample absorption, phase, and scattering are retrieved from the measurement of five intensity projections. The method is tested on custom-built phantoms with synchrotron radiation: sample absorption and phase can be reliably retrieved also in combination with strong scatterers, simultaneously attaining high sensitivity and dynamic range.