Take a hack saw blade. Cut through just the broken pipe. Then, cut another slice, about 1/4 of an inch away, only thru the broken pipe, then pop out the segment of broken pipe using a flathead screwdriver. This relieves pressure and you can carefully chisel the broken piece away from the wall. Once out, do a quick sanding to remove the remainder of the glue, and prime and glue in a new pipe. They also have power reamers if you have a steady hand.
There is also what’s called a ram bit it goes on the end of a drill and drills out the pvc in the fitting, gotta cut the remaining pvc basically flush to the fitting , in you case you could use a string saw, it works in friction
Or you can use havasu’s method