Call a callback with an map of parameters function Extension for PHP