GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 7bc1e1...7f6e00 )
by Jan Moritz
03:37 queued 01:41
created

benchmark.php (1 issue)

Severity

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
set_time_limit(0);
4
5
use BitcoinPHP\BitcoinECDSA\BitcoinECDSA;
6
7
require_once("src/BitcoinPHP/BitcoinECDSA/BitcoinECDSA.php");
8
9
$bitcoinECDSA = new BitcoinECDSA();
10
11
$time = microtime(true);
12
for($i = 0; $i < 1000; $i++) {
13
14
	$bitcoinECDSA->generateRandomPrivateKey();
15
	$bitcoinECDSA->getAddress();
16
17
}
18
echo "generated 1000 Addresses in " . ((microtime(true)-$time)) ." seconds";
19
20
?>
0 ignored issues
show
It is not recommended to use PHP's closing tag ?> in files other than templates.

Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.

A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.

Loading history...
21