NumberComparator.php Interfaces, Classes and Traits NumberComparator NumberComparator compiles a simple comparison to an anonymous subroutine, which you can call with a value to be tested again.