1--TEST-- 2ReflectionFunction::isAnonymous 3--FILE-- 4<?php 5$rf = new ReflectionFunction(function() {}); 6var_dump($rf->isAnonymous()); 7 8$rf = new ReflectionFunction('strlen'); 9var_dump($rf->isAnonymous()); 10 11$rf = new ReflectionFunction(strlen(...)); 12var_dump($rf->isAnonymous()); 13?> 14--EXPECT-- 15bool(true) 16bool(false) 17bool(false) 18