Republic of Ireland striker Robbie Keane had a penalty saved as 10-man Costa Rica fought back to earn a 1-1 draw in a friendly in Philadelphia.

Kevin Doyle headed Ireland in front after 18 minutes before Celso Borges equalised from the spot for World Cup-bound Costa Rica in the 64th minute.

Giancarlo Gonzalez was sent off just before half-time for elbowing Doyle.

Keane had the chance to restore the lead but substitute goalkeeper Patrick Pemberton denied the LA Galaxy forward.

Irish keeper David Forde, who had brought down Los Tico's striker Marco Urena to concede the earlier penalty, then made a good save from Arsenal's Joel Campbell to help secure the draw.

Doyle required five stitches following his altercation with defender Gonzalez, who had endured a running battle with the Wolves forward during the first-half at PPL Park.

After the match, Gonzalez's actions were swiftly condemned by Costa Rica manager Jorge Luis Pinto, and Ireland defender Richard Keogh.

"It was stupid, he deserved to be sent off," said Keogh. "I hope he learns from it because he has let his team-mates down and let his country down.

"It was stupid, very stupid. I don't know what went through his head."

Pinto told Gonzalez that his actions were unacceptable and warned the 26-year-old about his future conduct.

The Colombian said: "I spoke to him and I said that this is something that cannot happen now that we are going to a World Cup."

Costa Rica, who lost their previous World Cup warm-up match 3-1 to fellow finalists Japan, now head to Brazil to open their campaign against Uruguay before facing Italy and England in Group D.

Ireland, who will play World Cup finalists Portugal at New Jersey's MetLife stadium on Tuesday, did not reach the finals.

For the best of BBC Sport's in-depth content and analysis, go to our features and video page.

Lineup, Bookings (6) & Substitutions (10)

Costa Rica

  • 01 Navas (Pemberton - 45' )
  • 08 Mora
  • 15 Díaz Campbell
  • 04 Umaña
  • 03 Gonzalez Dismissed after an earlier booking
  • 06 Duarte
  • 10 Ruiz (Bolaños - 75' )
  • 22 Cubero
  • 09 Campbell (Calvo - 87' )
  • 21 Ureña (Brenes - 79' )
  • 05 Borges

Substitutes

  • 02 Acosta
  • 07 Bolaños
  • 11 Barrantes
  • 12 Francis
  • 13 Granados Maroto
  • 14 Brenes
  • 16 Gamboa
  • 17 Tejeda Valverde
  • 18 Pemberton
  • 19 Miller
  • 20 Calvo
  • 23 Cambronero

Republic of Ireland

  • 01 Forde Booked
  • 02 Kelly
  • 03 Wilson (McClean - 41' Booked )
  • 15 Green (Hendrick - 65' )
  • 04 Keogh
  • 12 Duffy
  • 13 Pilkington (McGeady - 68' )
  • 06 Whelan Booked
  • 10 Keane (Hoolahan - 84' )
  • 22 Doyle Booked (Long - 70' )
  • 18 Quinn (Cox - 84' )

Substitutes

  • 07 McGeady
  • 08 Meyler
  • 09 Long
  • 11 McClean
  • 16 Elliot
  • 19 Cox
  • 20 Hoolahan
  • 23 Lawlor
  • 24 Pearce
  • 25 Hendrick
Ref: Raul Castro

Match Stats

Shots

12 9

On target

5 5

Corners

1 5

Fouls

11 15

Live Text Commentary

Full time

Full Time Match ends, Costa Rica 1, Republic of Ireland 1.

90:00 +2:31 Full time

Full Time Second Half ends, Costa Rica 1, Republic of Ireland 1.

90:00 +2:05

Corner, Republic of Ireland. Conceded by Patrick Pemberton.

90:00 +2:00

Attempt saved. Simon Cox (Republic of Ireland) right footed shot from the left side of the box is saved in the bottom left corner. Assisted by Wes Hoolahan.

90:00 +1:36

Corner, Republic of Ireland. Conceded by Celso Borges.

90:00 +1:33

Attempt blocked. Shane Long (Republic of Ireland) right footed shot from outside the box is blocked. Assisted by Wes Hoolahan.

86:35 Substitution

Substitution Substitution, Costa Rica. Diego Calvo replaces Joel Campbell.

85:56

Attempt missed. Aiden McGeady (Republic of Ireland) right footed shot from outside the box is close, but misses to the left. Assisted by Simon Cox.

84:51

Foul by Michael Umaña (Costa Rica).

84:51

Shane Long (Republic of Ireland) wins a free kick in the defensive half.

83:50 Substitution

Substitution Substitution, Republic of Ireland. Simon Cox replaces Stephen Quinn.

83:32 Substitution

Substitution Substitution, Republic of Ireland. Wes Hoolahan replaces Robbie Keane.

82:47

Corner, Republic of Ireland. Conceded by Patrick Pemberton.

82:43

Attempt saved. Shane Long (Republic of Ireland) right footed shot from outside the box is saved in the bottom left corner. Assisted by James McClean.

81:55

Foul by Joel Campbell (Costa Rica).

81:55

James McClean (Republic of Ireland) wins a free kick on the left wing.

81:28

Foul by Christian Bolaños (Costa Rica).

81:28

Aiden McGeady (Republic of Ireland) wins a free kick in the defensive half.

78:37

Attempt saved. Randall Brenes (Costa Rica) left footed shot from outside the box is saved in the centre of the goal.

78:24 Substitution

Substitution Substitution, Costa Rica. Randall Brenes replaces Marcos Ureña.

77:59

Joel Campbell (Costa Rica) wins a free kick on the right wing.

77:59

Foul by James McClean (Republic of Ireland).

76:11

Corner, Costa Rica. Conceded by James McClean.

76:09

Attempt blocked. Joel Campbell (Costa Rica) left footed shot from outside the box is blocked. Assisted by Heiner Mora.

75:20

Attempt saved. Shane Long (Republic of Ireland) right footed shot from the left side of the six yard box is saved in the bottom left corner. Assisted by James McClean with a cross.

74:12 Substitution

Substitution Substitution, Costa Rica. Christian Bolaños replaces Bryan Ruiz.

72:56

Foul by Joel Campbell (Costa Rica).

72:56

Glenn Whelan (Republic of Ireland) wins a free kick in the defensive half.

71:16

Corner, Republic of Ireland. Conceded by Oscar Duarte.

70:12

Joel Campbell (Costa Rica) wins a free kick on the right wing.

70:12

Foul by Shane Long (Republic of Ireland).

69:52 Substitution

Substitution Substitution, Republic of Ireland. Shane Long replaces Kevin Doyle.

68:54

Offside, Republic of Ireland. Stephen Kelly tries a through ball, but Robbie Keane is caught offside.

68:42

Attempt saved. Joel Campbell (Costa Rica) left footed shot from the right side of the box is saved in the bottom left corner. Assisted by José Cubero.

67:20 Substitution

Substitution Substitution, Republic of Ireland. Aiden McGeady replaces Anthony Pilkington.

67:07

Attempt missed. Shane Duffy (Republic of Ireland) header from the centre of the box is too high. Assisted by James McClean with a cross following a corner.

66:39

Corner, Republic of Ireland. Conceded by Michael Umaña.

66:24

Penalty saved! Robbie Keane (Republic of Ireland) fails to capitalise on this great opportunity, right footed shot saved in the bottom left corner.

65:08

Penalty conceded by Heiner Mora (Costa Rica) after a foul in the penalty area.

65:08

Penalty Republic of Ireland. Stephen Quinn draws a foul in the penalty area.

64:13 Substitution

Substitution Substitution, Republic of Ireland. Jeff Hendrick replaces Paul Green.

63:16 Goal scored

Goal! Goal! Costa Rica 1, Republic of Ireland 1. Celso Borges (Costa Rica) converts the penalty with a right footed shot to the high centre of the goal.

62:25 Booking

Booking David Forde (Republic of Ireland) is shown the yellow card for a bad foul.

62:19

Penalty Costa Rica. Marcos Ureña draws a foul in the penalty area.

62:19

Penalty conceded by David Forde (Republic of Ireland) after a foul in the penalty area.

60:54

Offside, Republic of Ireland. Glenn Whelan tries a through ball, but Kevin Doyle is caught offside.

59:17

Foul by Júnior Díaz (Costa Rica).

59:17

Kevin Doyle (Republic of Ireland) wins a free kick in the defensive half.

59:08

Attempt blocked. Heiner Mora (Costa Rica) left footed shot from the right side of the box is blocked. Assisted by Joel Campbell.

56:53 Booking

Booking James McClean (Republic of Ireland) is shown the yellow card for a bad foul.

56:51

Joel Campbell (Costa Rica) wins a free kick on the right wing.

56:51

Foul by James McClean (Republic of Ireland).

52:36

Attempt saved. Joel Campbell (Costa Rica) left footed shot from the right side of the box is saved in the bottom right corner. Assisted by Bryan Ruiz.

50:55

Joel Campbell (Costa Rica) wins a free kick in the attacking half.

50:55

Foul by Glenn Whelan (Republic of Ireland).

50:08

Attempt missed. Marcos Ureña (Costa Rica) right footed shot from the left side of the box is too high. Assisted by Joel Campbell.

49:03

Heiner Mora (Costa Rica) wins a free kick in the defensive half.

49:03

Foul by Stephen Quinn (Republic of Ireland).

48:13

Marcos Ureña (Costa Rica) wins a free kick in the attacking half.

48:13

Foul by Shane Duffy (Republic of Ireland).

46:47

Oscar Duarte (Costa Rica) wins a free kick in the defensive half.

46:47

Foul by Kevin Doyle (Republic of Ireland).

45:00

Second Half begins Costa Rica 0, Republic of Ireland 1.

45:00 Substitution

Substitution Substitution, Costa Rica. Patrick Pemberton replaces Keylor Navas.

45:00 +3:09 Half time

Half Time First Half ends, Costa Rica 0, Republic of Ireland 1.

45:00 +0:13

Attempt missed. Oscar Duarte (Costa Rica) header from the left side of the six yard box is high and wide to the left. Assisted by Celso Borges with a cross following a set piece situation.

44:42

José Cubero (Costa Rica) wins a free kick on the right wing.

44:42

Foul by Glenn Whelan (Republic of Ireland).

42:15

Delay over. They are ready to continue.

41:37

Delay in match Kevin Doyle (Republic of Ireland) because of an injury.

41:14 Dismissal

Dismissal Giancarlo Gonzalez (Costa Rica) is shown the red card.

40:36 Booking

Booking Giancarlo Gonzalez (Costa Rica) is shown the yellow card for a bad foul.

40:32

Foul by Giancarlo Gonzalez (Costa Rica).

40:32

Kevin Doyle (Republic of Ireland) wins a free kick in the attacking half.

40:12 Substitution

Substitution Substitution, Republic of Ireland. James McClean replaces Marc Wilson because of an injury.

40:01

Delay over. They are ready to continue.

38:56

Delay in match Marc Wilson (Republic of Ireland) because of an injury.

38:15

Attempt missed. Celso Borges (Costa Rica) right footed shot from the centre of the box is just a bit too high.

36:59

Attempt missed. Celso Borges (Costa Rica) right footed shot from long range on the left is too high. Assisted by Júnior Díaz.

29:14

Delay over. They are ready to continue.

28:10

Delay in match Giancarlo Gonzalez (Costa Rica) because of an injury.

27:46

Giancarlo Gonzalez (Costa Rica) wins a free kick in the defensive half.

27:46

Foul by Kevin Doyle (Republic of Ireland).

26:47

Foul by Michael Umaña (Costa Rica).

26:47

Kevin Doyle (Republic of Ireland) wins a free kick in the attacking half.

23:36

Bryan Ruiz (Costa Rica) wins a free kick on the right wing.

23:36

Foul by Shane Duffy (Republic of Ireland).

21:24

Júnior Díaz (Costa Rica) wins a free kick in the defensive half.

21:24

Foul by Stephen Kelly (Republic of Ireland).

20:49

Foul by Heiner Mora (Costa Rica).

20:49

Stephen Quinn (Republic of Ireland) wins a free kick in the defensive half.

19:12

Bryan Ruiz (Costa Rica) wins a free kick on the right wing.

19:12

Foul by Paul Green (Republic of Ireland).

18:17

Attempt saved. Heiner Mora (Costa Rica) right footed shot from outside the box is saved in the top centre of the goal.

17:19 Goal scored

Goal! Goal! Costa Rica 0, Republic of Ireland 1. Kevin Doyle (Republic of Ireland) header from the centre of the box to the bottom right corner. Assisted by Marc Wilson with a cross.

15:16

Offside, Republic of Ireland. Marc Wilson tries a through ball, but Robbie Keane is caught offside.

14:09

Attempt blocked. José Cubero (Costa Rica) right footed shot from outside the box is blocked. Assisted by Bryan Ruiz.

12:15

Foul by Júnior Díaz (Costa Rica).

12:15

Kevin Doyle (Republic of Ireland) wins a free kick on the right wing.

11:10

Bryan Ruiz (Costa Rica) wins a free kick on the right wing.

11:10

Foul by Marc Wilson (Republic of Ireland).

10:27

José Cubero (Costa Rica) wins a free kick in the attacking half.

10:27

Foul by Paul Green (Republic of Ireland).

8:16

Offside, Republic of Ireland. Marc Wilson tries a through ball, but Kevin Doyle is caught offside.

7:45

Foul by Giancarlo Gonzalez (Costa Rica).

7:45

Kevin Doyle (Republic of Ireland) wins a free kick on the left wing.

2:45

Attempt missed. Robbie Keane (Republic of Ireland) left footed shot from more than 35 yards misses to the right. Assisted by Kevin Doyle.

0:00

First Half begins.

0:00

Lineups are announced and players are warming up.

Live data and text provided by our data suppliers