I was digging a perimeter drainage ditch in the new pit area. There is some standing water (mabye 2ft deep). This limited the visibility of the actual ditch sides. I apparently got too close to the edge of the ditch and the machine tipped into the ditch, cab side first. The cab strted to fill with water and I (in a panic) kicked out the front window of the cab and crawled through.