Simple event-loop daemon written in PHP