Militants brought the men to a main street in Al-Qaim, near Iraq's border with Syria, in a convoy of trucks on Sunday, witnesses said. The men, their hands bound, were shot dead one by one, witnesses added.
Their bodies were taken away by ambulance, and Dr Mustafa Shawqi from the Al-Qaim hospital confirmed the deaths.
ISIL terrorists have repeatedly carried out executions in both Iraq and Syria, and have documented their deeds online with grisly photos of their victims, including some who have been beheaded.
Militants seized control of Al-Qaim last month during a major offensive that has overrun swathes of five provinces north and west of Baghdad.
According to the UN refugee agency, there are more than 4,500 Syrian refugees in Iraq's Anbar province, many of them at a camp near Al-Qaim.
A prominent human rights organization has strongly slammed the notorious terrorist group of ISIL, for committing more atrocities in Syria.
This comes after the group summarily executed nearly 20 civilians in al-Taliliya village in northern Syria. The killings took place in late May.
Nadim Houry, deputy director of Human Rights Watch's Middle East and North Africa said the al-Qaeda linked group was flouting the law and executing civilians across the Arab country.
Local residents and eyewitnesses told the rights group that the victims included some elderly people, women and seven children.
The families of the victims are still afraid to talk about the details of the attack, fearing the militants could go back and kill the rest.
Since the outbreak of the turmoil in Syria in March 2011, several witness accounts and video clips have been released showing the grisly crimes perpetrated by the Takfiri terrorists against innocent civilians in the crisis-torn country.
NJF/NJF