Edge case for PHP anonymous functions