PHP IO Handler for Code Jam 2013