$length = $this->getOption( "length", 128 );
$number = self::makeRandomNumber( $inbase, $length );
- $this->bench( array(
- array(
+ $this->bench( [
+ [
'function' => 'Wikimedia\base_convert',
- 'args' => array( $number, $inbase, $outbase, 0, true, 'php' )
- ),
- array(
+ 'args' => [ $number, $inbase, $outbase, 0, true, 'php' ]
+ ],
+ [
'function' => 'Wikimedia\base_convert',
- 'args' => array( $number, $inbase, $outbase, 0, true, 'bcmath' )
- ),
- array(
+ 'args' => [ $number, $inbase, $outbase, 0, true, 'bcmath' ]
+ ],
+ [
'function' => 'Wikimedia\base_convert',
- 'args' => array( $number, $inbase, $outbase, 0, true, 'gmp' )
- ),
- ) );
+ 'args' => [ $number, $inbase, $outbase, 0, true, 'gmp' ]
+ ],
+ ] );
$this->output( $this->getFormattedResults() );
}