As per USDA’s recommendation pizza will be safe to eat up to 4 days if it was refrigerated at a temperature lower than 40 degrees.
However, the food safety expert Janilyn Hutchings from the StateFoodSafety says that it is possible to keep the pizza in the refrigerator rather than in a fridge in an airtight container for up to 4 days.