So, you can use array_keys($_GET) to get an array such as [‘id’, ‘popcorn’, ‘horse’] of all the fields you can access. In this case they would be $_GET[‘id’] and $_GET[‘popcorn’] and $_GET[‘horse’]
foreach (array_keys($_GET) as $key) {
echo $key . ' is ' . $_GET[$key] . '<br>';
}