Fix:
<?php
if (($GLOBALS['user']) == 2) {
$value[0] = 'module';
$value[1] = 'file';
$value[2] = 'op';
echo "<table border=2><tr>";
foreach ($value as $vi) {
echo "<td>";
echo $vi;
echo "<table><tr><td align=right>GLOBALS:</td><td><b>";
echo ($GLOBALS[$vi]);
echo "</b></td></tr><tr><td align=right>GET:</td><td><b>";
echo ($_GET[$vi]);
echo "</b></td></tr></table></td>";
}
echo "</tr></table>";
}
?>
Not sure if this is the best solution, though it does work.