Results are reported from a search for physics beyond the standard model in final states with at least three charged leptons, in any combination of electrons or muons. The data sample corresponds to an integrated luminosity of 2.3fb-1 of proton–proton collisions at s=13TeV, recorded by the CMS experiment at the LHC in 2015. Two jets are required in each event, providing good sensitivity to strong production of gluinos and squarks. The search regions, sensitive to a range of different new physics scenarios, are defined using the number of jets tagged as originating from bottom quarks, the sum of the magnitudes of the transverse momenta of the jets, the imbalance in the overall transverse momentum in the event, and the invariant mass of opposite-sign, same-flavor lepton pairs. The event yields observed in data are consistent with the expected background contributions from standard model processes. These results are used to derive limits in terms of R-parity conserving simplified models of supersymmetry that describe strong production of gluinos and squarks. Model-independent limits are presented to facilitate the reinterpretation of the results in a broad range of scenarios for physics beyond the standard model.