Your syntax doesn't look right, did you mean:
if(!isset($debut)){
$debut=0;
echo $foo;
}
echo $foo should work, so apparently you're inside the braces and maybe $debut IS set.
Try putting $foo at the top of the page and move it through the logical structures to troubleshoot.