Uses lambdas, so it requires PHP 5.4.0.