Hexdump functionality for php