How to get user details from id in wordpress

{ // deep_execution_view
const authorName = "Ankit Agrawal";
//
const publishDate = "July 15, 2015";
$user_id = 1;
$filed = "id"; // you can also use email/slug/login
$aUser = get_user_by( $filed , $user_id );
print_r($aUser);
}