Simplified and optimized ZEND_HANDLE_NUMERIC()