@jcleveley In PHP for comparison:

```php
// With (PECL pthreads >= 2.0.0)
class MyThread extends Thread {
    public function run() {
        doStuff();
    }
}
$t = new MyThread();
$t->start();

doSomeOtherStuff();

$t->join()
```