The iPhone blurred background is completely synthetic. It uses multiple cameras to build a depth map of the scene, and then blurs whatever isn't at the depth of the subject of the photo.
If you're asking "how do you do", you can select "portrait" when taking the photo, or go to the photo in your gallery after the fact, pick "edit", pick "portrait", and choose a fake aperture ("f/1.4") and focus point to use. The results are ... mid.