Like tomhath writes, an obvious solution is to add another parameter.
However, I don't quite see why you want this. In case you're tired, and call a function from the wrong place?
You could call this function with;
test(5, 9, 'functionX');
function test($x, $y, $calledfrom='') {
switch ($calledfrom) {
case '': {
// Not specified, do something.
break;
}
case 'functionX': {
// From functionX, do something else
break;
}
default: {
// Unknown caller
break;
}
}
}