Php Use Variable In Anonymous Function In Java