Space Emergency solutions

Space Emergency was solved using PHP by 7 contestants. Solution sizes: average 1498 bytes (shortest: 577; longest: 2177).