An iterative thunk invoking trampoline in php