XAMPP takes all of the pain out of setting up a local testing environment. The problem with using your production server for testing is you either have to turn on verbose error messages (security risk) or try to figure out problems without them.
Learning PHP on a production server is a scary way to go in my opinion. :)