php_delay PHP delay execute closures. install composer require sn01615/php_delay usage use PhpUtils; $cc = 'aaa'; phpDelay::getInstance()->push(function () use ($cc) { echo $cc; }); echo 'bbb'; # response: bbbaaa