Use PHP5.3 closures instead of PHP5.2 create_function()