Event-loop daemon written in PHP