Revenge of the Hot Dogs solutions

Revenge of the Hot Dogs was solved using PHP by 2 contestants. Solution sizes: average 1396 bytes (shortest: 1227; longest: 1723).