1. Go to this page and download the library: Download smuuf/phpcb library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
smuuf / phpcb example snippets
= new \Smuuf\Phpcb\PhpBenchmark;
const COUNT = 100;
$bench->addBench(function() {
for ($i = 1; $i <= COUNT; $i++) {}
});
$bench->addBench(function() {
for ($i = COUNT; $i > 0; $i--) {}
});
$bench->addBench(function() {
for ($i = COUNT; $i--;) {}
});
$bench->addBench(function() {
for ($i = -COUNT; $i++;) {}
});
$bench->run();