I am very sorry....
Updated MAMP (I use to check PHP sites) I did not realize that the PHP version in the installed version was PHP 7. I think that was the problem because installing PHP 5.6 there was no problem, everything worked as it should.
Again sorry for bothering you
Any change you update the extension for PHP 7?
Greetings from Holland