Skip to content

Instantly share code, notes, and snippets.

@sidor1989
Created March 5, 2019 08:48
Show Gist options
  • Save sidor1989/e1b4bbb01f63edd44c343238ee4202ab to your computer and use it in GitHub Desktop.
Save sidor1989/e1b4bbb01f63edd44c343238ee4202ab to your computer and use it in GitHub Desktop.
<?php
$start = microtime(true);
for ($i = 0; $i &lt;= 30000000; $i++)
{
//ничего не делаем
}
echo 'Скрипт был выполнен за ' . (microtime(true) - $start) . ' секунд';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment