Which code snippet uses the correct syntax for creating an instance of the Pet class?
$cat = new Pet();
$dog = new Pet;
all of these answers
$horse = (new Pet);