Sorry, I forgot to be more specific, and I was wrong in the title, in this case I need it in my MAMP installation mampstack-5.6.30-2.
When check it with $ php -m | grep readline I get empty.
Also, I checked it on an old LAMP version (BitNami LAMP Stack 5.4.19-0) that have on a server and it also PHP doesn't seems to come readline.
What can I do to add readline support in these cases? (I'm more interested in MAMP right now but will be great to add it to LAMP as well)