The Great Wall solutions

The Great Wall was solved using PHP by 3 contestants. Solution sizes: average 2389 bytes (shortest: 2252; longest: 2652).