Get info from entity reference using PHP
You just need to get the target_id from each of the field values, which you can do by looping through $info:

$uids = array();
foreach ($info as $field_item) {
  // Entity reference fields store their data in the 'target_id' column
  $uids[] = $field_item['target_id'];
}