Variables in php consideration

$test = 123;

$test = ‘123’;

it consider 1st as intiger or 2nd as string or intiger ?