A multithreading class for PHP