Fetch and filter by image meta data

Thank you for your help. So like this?

<?php
foreach($images as $image) {
  <img src="<?php echo $image->url() ?>">
}
?>

I can’t make it work. I get:

ParseError
syntax error, unexpected ‘<’

for this line:

<img src="<?php echo $image->url() ?>">