Open a phpinfo() and search for the line Thread safety. For a thread-safe build you should find enable.
You can also use:
On Windows : php -i|findstr "Thread"
On Linux: php -i|grep Thread
link: https://stackoverflow.com/questions/5799843/find-if-the-installed-php-is-threadsafe-or-nonthreadsafe
$result = $date->format('Y-m-d H:i:s');
printf '\033c'
<?php
header("Access-Control-Allow-Origin: *");