Php 在laravel 5.1中并行运行功能?

Php 在laravel 5.1中并行运行功能?,php,multithreading,laravel,parallel-processing,Php,Multithreading,Laravel,Parallel Processing,我在laravel 5.1的性能上遇到了问题 public static function test($keyword) { //fun1 $x = $bh -> getASearch($keyword); $output['A'] = $bh -> gNOR($a, $nor); //fun2 $y = $bh -> getBSearch($keyword); $output['B'] = $bh -> gNOR($b, $nor); //fun3 $z

我在laravel 5.1的性能上遇到了问题

public static function test($keyword)
{

//fun1

$x = $bh -> getASearch($keyword);

$output['A'] = $bh -> gNOR($a, $nor);

//fun2

$y = $bh -> getBSearch($keyword);

$output['B'] = $bh -> gNOR($b, $nor);

//fun3

$z = $bh -> getCSearch($keyword);

$output['C'] = $bh -> gNOR($c, $nor);

}
//我想并行运行fun1、fun2和fun3的代码,以减少加载时间

我喜欢KISS原则,但要清楚引用的链接被授予了

php中的多线程:可能是我用pcntl_fork()和pthreads尝试的副本,但没有准确的结果它仍然用php中的多线程并行执行脚本:可能是我用pcntl_fork()和pthreads尝试的副本,但是没有精确的结果,它仍然并行执行脚本