Being that ping was written in C, you could go find the source online and check it out yourself, a conversion ffrom C to PHP shouldn't be that hard.
The guy who wrote it died in a car crash last year, now if he could figure out a way to ping from the crypt so I could vfsck him and get him to let me know the next super lotto numbers. 🙂