Geoff Garbers

Husband. Programmer. Tinkerer.

Executing Laravel code inside `parallel` runtime.

Nov 22, 2019

Traditionally, PHP has always been a single-threaded language. This means that you have a single process that runs, and everything runs sequentially within that process.

However, there is a way to run separate threads within PHP, using the threads PHP module. However, as per [this GitHub issue] (https://github.com/krakjoe/pthreads/issues/929), pthreads has been deprecated.