It will validate for versions 5.2.0 and up, but I understand your point.
http://php.net/manual/en/function.filter-var.php