Probably smart regex and some workaround for `$N > PHP_INT_MAX && PHP_INT_MIN > $N`. Consider if supporting scientific notation and others is important.
Probably smart regex and some workaround for
$N > PHP_INT_MAX && PHP_INT_MIN > $N.Consider if supporting scientific notation and others is important.