Functions Learning Mode

What is the output of the following code?

    function func ($x, $x=1, $x=2){
        return $x;
    }
    print func (3);