@@ 36-47 (lines=12) @@ | ||
33 | $numberUtil = new NumberUtil; |
|
34 | ||
35 | ||
36 | if (extension_loaded('bcmath')) { |
|
37 | $bm->mark('baseConvertBcmath()'); |
|
38 | ||
39 | for ($i = 0; $i < $count; $i ++) { |
|
40 | $y = $numberUtil->baseConvertBcmath($x, 16, 62); |
|
41 | } |
|
42 | $bm->mark('Base 16 to base 62'); |
|
43 | for ($i = 0; $i < $count; $i ++) { |
|
44 | $numberUtil->baseConvertBcmath($y, 62, 16); |
|
45 | } |
|
46 | $bm->mark('Base 62 to base 16'); |
|
47 | } |
|
48 | ||
49 | ||
50 | if (extension_loaded('gmp')) { |
|
@@ 50-61 (lines=12) @@ | ||
47 | } |
|
48 | ||
49 | ||
50 | if (extension_loaded('gmp')) { |
|
51 | $bm->mark('baseConvertGmp()'); |
|
52 | ||
53 | for ($i = 0; $i < $count; $i ++) { |
|
54 | $y = $numberUtil->baseConvertGmp($x, 16, 62); |
|
55 | } |
|
56 | $bm->mark('Base 16 to base 62'); |
|
57 | for ($i = 0; $i < $count; $i ++) { |
|
58 | $numberUtil->baseConvertGmp($y, 62, 16); |
|
59 | } |
|
60 | $bm->mark('Base 62 to base 16'); |
|
61 | } |
|
62 | ||
63 | ||
64 | if (extension_loaded('gmp') && version_compare(PHP_VERSION, '5.3.2', '>=')) { |