simple and old worker implementation for php