I found this PECL package called threads, but there is not a release yet. And nothing is coming up on the PHP website.
You can use pcntl_fork() to achieve something similar to threads. Technically it's separate processes, so the communication between the two is not as simple with threads, and I believe it will not work if PHP is called by apache.